diff --git a/Diagrammes-UML.md b/Diagrammes-UML.md index b72de3f..ae62b97 100644 --- a/Diagrammes-UML.md +++ b/Diagrammes-UML.md @@ -1,6 +1,5 @@ ```plantuml @startuml - hide circle allowmixing skinparam classAttributeIconSize 0 @@ -11,23 +10,46 @@ skinparam classFontColor #black skinparam classFontName Tahoma -Class Piece { -- string forme -- string couleur -- int row +Class Tile { +- string shape +- string color +- int row - int column +public : +- Tile(string shape, string color) +- ~Tile() +- string getShape() +- string getColor() +- int getRow() +- int getColumn() } -Class Joueur { -- string nom +Class Player { +- string name - int score -- int meilleurScore +- int bestScore +- bool playTurn - Piece * main +- unordered_map +public : +- Player(string name) +- ~Player() +- string getName() +- int getScore() +- int getBestScore() +- void play(dictionnary) +- void swap(dictionnary) } +Class Gameboard { +- int[][] gameboard +- void getPlayerTurn() +} -PieceTheque --> "-Pioche *" Piece -Joueur --> "- /main *" Piece +Class Play { +- int nbPlayers +} +Player --> "- Tile* main " Tile @enduml