|
|
|
@ -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
|
|
|
|
|
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<Tile, int nb>
|
|
|
|
|
public :
|
|
|
|
|
- Player(string name)
|
|
|
|
|
- ~Player()
|
|
|
|
|
- string getName()
|
|
|
|
|
- int getScore()
|
|
|
|
|
- int getBestScore()
|
|
|
|
|
- void play(dictionnary<Tile, int nb>)
|
|
|
|
|
- void swap(dictionnary<Tile, int nb>)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Class Gameboard {
|
|
|
|
|
- int[][] gameboard
|
|
|
|
|
- void getPlayerTurn()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PieceTheque --> "-Pioche *" Piece
|
|
|
|
|
Joueur --> "- /main *" Piece
|
|
|
|
|
Class Play {
|
|
|
|
|
- int nbPlayers
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Player --> "- Tile* main " Tile
|
|
|
|
|
@enduml
|
|
|
|
|
|
|
|
|
|