aboutsummaryrefslogtreecommitdiff
path: root/doc/diagrams/GameBoard.pumlc
blob: ebeedd7aa18f814427b6aaa2c9dc7a2261b4cb5e (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
29
@startuml

class GameBoard {
    int[][] board
    int capturesBlack
    int capturesWhite

    getBoard()
    getBoardHeight()
    getBoardWidth()
    getDeepCopy()
    getGroupLiberties(row, col)
    getGroupLibertiesCount(row, col)
    getGroupVertices(row, col)
    getGroupVerticesCount(row, col)
    moveAndCapture(row, col, player)
    isMoveInBoardBounds(row, col)
    isCellEmpty(row, col)
    isCellEye(row, col)
    isMoveSuicidal(row, col, player)
    isMoveKoIllegal(row, col, player, prevBoards)
    isPlayable(row, col, player, prevBoards)
    isSensible(row, col, player, prevBoards)
    score()
    equals(otherBoard)
    printBoard()
}

@enduml