From 59f54de065396d8ef664fc3886fd9df0e0f45e52 Mon Sep 17 00:00:00 2001 From: Remy PORTET Date: Fri, 5 Apr 2024 09:41:45 +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 | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/Diagrammes-UML.md b/Diagrammes-UML.md index ae62b97..5d66b83 100644 --- a/Diagrammes-UML.md +++ b/Diagrammes-UML.md @@ -30,7 +30,7 @@ Class Player { - int bestScore - bool playTurn - Piece * main -- unordered_map +- dictionnary public : - Player(string name) - ~Player() @@ -42,14 +42,37 @@ public : } Class Gameboard { -- int[][] gameboard -- void getPlayerTurn() +- int[] rows +- int[] columns +public : +- Gameboard() +} + +Class Cell { +- int x +- int y +public : +- Cell() +- int getX() +- int getY() } Class Play { - int nbPlayers +- Gameboard gameboard +- dictionnary +public : +- Play(int nbPlayers) +- void getPlayerTurn() +} + +Class Leaderboard { +- int[] score +- string[] playerNames } Player --> "- Tile* main " Tile +Gameboard --> Cell +Cell --> Tile @enduml