Skip to content

Commit

Permalink
Merge pull request #24 from TINF21CS1/architectural_pattern
Browse files Browse the repository at this point in the history
Docs(architectural pattern): Added rule-based system diagram
  • Loading branch information
Tayhm authored Mar 20, 2024
2 parents 7995d07 + 63caf5b commit 26b98b9
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
Binary file added docs/patterns/rule_based.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions docs/patterns/rule_based.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
@startuml Rule-Based System

class "GameState" as WM

class "Game" as IE

class "RuleBase" as KB

class "Lobby" as UI

WM --> IE: Current state
IE --> KB: Validate action and state
KB --> IE: Validated / Error
IE --> WM: Update state
IE --> UI: Return state
UI --> IE: Request state

note right of WM
Working Memory
end note

note right of IE
Inference Engine
end note

note right of KB
Knowledge Base
end note

note right of UI
User Interface
end note

@enduml

0 comments on commit 26b98b9

Please sign in to comment.