Skip to content

Commit

Permalink
Docs(architectural pattern): Added rule-based system diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
Petzys committed Mar 20, 2024
1 parent 6576d17 commit 63caf5b
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 63caf5b

Please sign in to comment.