diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2022-06-10 21:31:47 +0200 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2022-06-10 21:31:47 +0200 |
commit | 157303459b32de07f6989ba9131a38fc113754de (patch) | |
tree | 9bc973434a3dc0173a5818658222cf4d57e4ae8c /doc | |
parent | 79a2fa6eba1648bf2beaaf534d1fa3247c0d6a01 (diff) | |
download | imago-157303459b32de07f6989ba9131a38fc113754de.tar.gz imago-157303459b32de07f6989ba9131a38fc113754de.zip |
Structuring the different decision algorithms.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/diagrams/DecisionAlgorithm.pumlc | 8 | ||||
-rw-r--r-- | doc/diagrams/Keras.pumlc | 9 | ||||
-rw-r--r-- | doc/diagrams/NeuralNetwork.pumlc | 8 | ||||
-rw-r--r-- | doc/diagrams/analysisClasses.puml | 20 | ||||
-rw-r--r-- | doc/diagrams/keras.puml | 13 | ||||
-rw-r--r-- | doc/diagrams/skinparams.puml | 3 |
6 files changed, 51 insertions, 10 deletions
diff --git a/doc/diagrams/DecisionAlgorithm.pumlc b/doc/diagrams/DecisionAlgorithm.pumlc new file mode 100644 index 0000000..aada4f0 --- /dev/null +++ b/doc/diagrams/DecisionAlgorithm.pumlc @@ -0,0 +1,8 @@ +@startuml + +interface DecisionAlgorithm { + {abstract} forceNextMove(self, coords) + {abstract} pickMove(self) +} + +@enduml diff --git a/doc/diagrams/Keras.pumlc b/doc/diagrams/Keras.pumlc new file mode 100644 index 0000000..daca149 --- /dev/null +++ b/doc/diagrams/Keras.pumlc @@ -0,0 +1,9 @@ +@startuml + +class Keras { + forceNextMove(self, coords) + pickMove(self) + loadNetwork(self) +} + +@enduml diff --git a/doc/diagrams/NeuralNetwork.pumlc b/doc/diagrams/NeuralNetwork.pumlc new file mode 100644 index 0000000..30f783e --- /dev/null +++ b/doc/diagrams/NeuralNetwork.pumlc @@ -0,0 +1,8 @@ +@startuml + +class NeuralNetwork { + load(self, path) + save(self, path) +} + +@enduml diff --git a/doc/diagrams/analysisClasses.puml b/doc/diagrams/analysisClasses.puml index 4a286f7..d051cf9 100644 --- a/doc/diagrams/analysisClasses.puml +++ b/doc/diagrams/analysisClasses.puml @@ -7,24 +7,24 @@ package GameModule { class GameState class GameBoard class GameMove -} -GameIO -> GameState -GameState -> GameMove -GameMove -> GameBoard + GameIO -> GameState + GameState -> GameMove + GameMove -> GameBoard +} package EngineModule { class EngineIO class EngineLogic - interface DecisionAlgorithm + !include DecisionAlgorithm.pumlc class MonteCarloTreeSearch class OtherDecisionAlgorithm -} -EngineIO --> EngineLogic -EngineLogic -> DecisionAlgorithm -DecisionAlgorithm <|.. MonteCarloTreeSearch -DecisionAlgorithm <|.. OtherDecisionAlgorithm + EngineIO --> EngineLogic + EngineLogic -> DecisionAlgorithm + DecisionAlgorithm <|.. MonteCarloTreeSearch + DecisionAlgorithm <|.. OtherDecisionAlgorithm +} MonteCarloTreeSearch --> GameMove OtherDecisionAlgorithm --> GameMove diff --git a/doc/diagrams/keras.puml b/doc/diagrams/keras.puml new file mode 100644 index 0000000..98776d1 --- /dev/null +++ b/doc/diagrams/keras.puml @@ -0,0 +1,13 @@ +@startuml + +!include skinparams.puml + +!include DecisionAlgorithm.pumlc +!include Keras.pumlc +!include NeuralNetwork.pumlc + +DecisionAlgorithm <|.. Keras + +Keras -> NeuralNetwork + +@enduml diff --git a/doc/diagrams/skinparams.puml b/doc/diagrams/skinparams.puml index cde3da7..2a9e58e 100644 --- a/doc/diagrams/skinparams.puml +++ b/doc/diagrams/skinparams.puml @@ -1,5 +1,8 @@ @startuml +'Old style +skin rose + skinparam { monochrome true shadowing false |