aboutsummaryrefslogtreecommitdiff
path: root/doc/diagrams/GameBoard.pumlc
blob: 7a57b2da69c6d138f1b1cc41643e3d0ed290da72 (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 GameBoard {
    int[][] board
    int capturesBlack
    int capturesWhite

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

@enduml