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

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

    getRow()
    getCol()
    getPlayer()
    getNextPlayer()
    getGameLength()
    getThisAndPrevBoards()
    getPlayableVertices()
    getSensibleVertices()
    addMove(row, col)
    addMoveBcoords(coords)
    addMoveForPlayer(row, col, player)
    addPass()
    addPassForPlayer()
    getMainLineOfPlay()
    printBoard()
}

@enduml