Compare commits
51 Commits
@ -1,45 +0,0 @@
|
||||
# hrd
|
||||
-------------------------------------
|
||||
| Game |
|
||||
-------------------------------------
|
||||
| - board: Board |
|
||||
| - players: Player[] |
|
||||
-------------------------------------
|
||||
| + Game(rows: int, cols: int, playerNames: String[]) |
|
||||
| + playGame(): void |
|
||||
-------------------------------------
|
||||
|
||||
-------------------------------------
|
||||
| Board |
|
||||
-------------------------------------
|
||||
| - pieces: Piece[][] |
|
||||
-------------------------------------
|
||||
| + Board(rows: int, cols: int) |
|
||||
| + placePiece(piece: Piece, row: int, col: int): void |
|
||||
| + getPiece(row: int, col: int): Piece |
|
||||
-------------------------------------
|
||||
|
||||
-------------------------------------
|
||||
| Piece |
|
||||
-------------------------------------
|
||||
| - type: int |
|
||||
| - row: int |
|
||||
| - col: int |
|
||||
-------------------------------------
|
||||
| + Piece(type: int, row: int, col: int) |
|
||||
| + getType(): int |
|
||||
| + setType(type: int): void |
|
||||
| + getRow(): int |
|
||||
| + setRow(row: int): void |
|
||||
| + getCol(): int |
|
||||
| + setCol(col: int): void |
|
||||
-------------------------------------
|
||||
|
||||
-------------------------------------
|
||||
| Player |
|
||||
-------------------------------------
|
||||
| - name: String |
|
||||
-------------------------------------
|
||||
| + Player(name: String) |
|
||||
| + getName(): String |
|
||||
-------------------------------------
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 124 KiB |
|
After Width: | Height: | Size: 56 KiB |
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue