From 0b40c805f6e8b9e27a60525bd66cbfd0181eeb9c Mon Sep 17 00:00:00 2001 From: Remy PORTET Date: Fri, 5 Apr 2024 09:18:22 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Diagrammes=20UML'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Diagrammes-UML.md | 42 ++++++++++++++++++++++++++++++++---------- 1 file changed, 32 insertions(+), 10 deletions(-) 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