|
|
@ -2,10 +2,12 @@
|
|
|
|
classDiagram
|
|
|
|
classDiagram
|
|
|
|
|
|
|
|
|
|
|
|
class Player{
|
|
|
|
class Player{
|
|
|
|
|
|
|
|
- Id : int
|
|
|
|
- Pseudo : string
|
|
|
|
- Pseudo : string
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class Stats{
|
|
|
|
class Stats{
|
|
|
|
|
|
|
|
- Id : int
|
|
|
|
- NbWin : int
|
|
|
|
- NbWin : int
|
|
|
|
- NbPlayed : int
|
|
|
|
- NbPlayed : int
|
|
|
|
- MaxChain : int
|
|
|
|
- MaxChain : int
|
|
|
@ -16,6 +18,7 @@ class Stats{
|
|
|
|
Player --> "1" Stats : Stats
|
|
|
|
Player --> "1" Stats : Stats
|
|
|
|
|
|
|
|
|
|
|
|
class Game{
|
|
|
|
class Game{
|
|
|
|
|
|
|
|
- Id : int
|
|
|
|
- Duration : TimeSpan
|
|
|
|
- Duration : TimeSpan
|
|
|
|
- Date : DateOnly
|
|
|
|
- Date : DateOnly
|
|
|
|
- Grilles : Dictionary~Player,Grille~
|
|
|
|
- Grilles : Dictionary~Player,Grille~
|
|
|
@ -25,28 +28,17 @@ class Game{
|
|
|
|
Game --> "*" Player : Players
|
|
|
|
Game --> "*" Player : Players
|
|
|
|
|
|
|
|
|
|
|
|
class GameMode{
|
|
|
|
class GameMode{
|
|
|
|
|
|
|
|
- Id : int
|
|
|
|
- Name : int
|
|
|
|
- Name : int
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Game --> "1" GameMode : GameMode
|
|
|
|
Game --> "1" GameMode : GameMode
|
|
|
|
|
|
|
|
|
|
|
|
class Turn{
|
|
|
|
class Turn{
|
|
|
|
|
|
|
|
- Id : int
|
|
|
|
- DiceValue1 : int
|
|
|
|
- DiceValue1 : int
|
|
|
|
- DiceValue2 : int
|
|
|
|
- DiceValue2 : int
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Game --> "*" Turn : Turns
|
|
|
|
Game --> "*" Turn : Turns
|
|
|
|
|
|
|
|
|
|
|
|
class Grille {
|
|
|
|
|
|
|
|
- NbChaine : int
|
|
|
|
|
|
|
|
- NbZone : int
|
|
|
|
|
|
|
|
- MaxChain : int
|
|
|
|
|
|
|
|
- MaxZone : int
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Case {
|
|
|
|
|
|
|
|
- Valeur : int
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Grille --> "*" Case : Cases
|
|
|
|
|
|
|
|
```
|
|
|
|
```
|