diff --git a/docs/patterns/rule_based.png b/docs/patterns/rule_based.png new file mode 100644 index 0000000..7ff3101 Binary files /dev/null and b/docs/patterns/rule_based.png differ diff --git a/docs/patterns/rule_based.puml b/docs/patterns/rule_based.puml new file mode 100644 index 0000000..a9d2efa --- /dev/null +++ b/docs/patterns/rule_based.puml @@ -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