Compare commits

..

1 Commits
main ... model

Author SHA1 Message Date
pn43yj7s9 28cb9f8229 Update README.md
2 years ago

@ -0,0 +1,45 @@
# 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.

Before

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Binary file not shown.
Loading…
Cancel
Save