aboutsummaryrefslogtreecommitdiff
path: root/doc/diagrams/GameMove.pumlc
blob: 0f75edd6f8a094aef33f24edc921ab9baa053fdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@startuml

class GameMove {
    GameBoard board
    GameMove[] nextMoves
    GameMove previousMove
    boolean isPass
    int[2] coords

    getRow(self)
    getCol(self)
    getPlayer(self)
    getNextPlayer(self)
    getGameLength(self)
    getThisAndPrevBoards(self)
    getPlayableVertices(self)
    addMove(self, row, col)
    addMoveForPlayer(self, row, col, player)
    addPass(self)
    printBoard(self)
}

@enduml