diff --git a/ClassDiagram.png b/ClassDiagram.png new file mode 100644 index 0000000..35f2397 Binary files /dev/null and b/ClassDiagram.png differ diff --git a/Diagrammes-UML.md b/Diagrammes-UML.md index 12e78f3..326b0d0 100644 --- a/Diagrammes-UML.md +++ b/Diagrammes-UML.md @@ -1,78 +1 @@ -```plantuml -@startuml -hide circle -allowmixing -skinparam classAttributeIconSize 0 -skinparam classBackgroundColor #ffffb9 -skinparam classBorderColor #800000 -skinparam classArrowColor #800000 -skinparam classFontColor #black -skinparam classFontName Tahoma - - -Class Tile #67D2DC { -- string shape -- string color -- int row -- int column -public : -- Tile(string shape, string color) -- ~Tile() -- string getShape() -- string getColor() -- int getRow() -- int getColumn() -} - -Class Player #5BBB4E { -- string name -- int score -- int bestScore -- bool playTurn -- Piece * main -- dictionnary -public : -- Player(string name) -- ~Player() -- string getName() -- int getScore() -- int getBestScore() -- void play(dictionnary) -- void swap(dictionnary) -} - -Class Gameboard #2981E9 { -- int[] rows -- int[] columns -public : -- Gameboard() -} - -Class Cell #5792D8 { -- int x -- int y -public : -- Cell() -- int getX() -- int getY() -} - -Class Play #DFBD62 { -- int nbPlayers -- Gameboard gameboard -- dictionnary -public : -- Play(int nbPlayers) -- void getPlayerTurn() -} - -Class Leaderboard #894EBB { -- int[] score -- string[] playerNames -} - -Player --> "- Tile* main " Tile -Gameboard --> Cell -Cell --> Tile -@enduml - +![](ClassDiagram.png) \ No newline at end of file