forked from thomas.barbier/connect4
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
2 years ago | |
---|---|---|
.gitignore | 2 years ago | |
README.md | 2 years ago |
README.md
connect4
classDiagram
class Player
Player : int id
Player : string name
class Board
Board : int nbrow
Board : int nbcol
Board : [] board
Board : _checkBoundaries(row, col)
Board : _removePiece(row, col)
Board : _insertPiece(row, col, playerId)
Board : insertPieceIntoColumn(col, playerId)
class Rules
Rules : string name
Rules : int nbrow
Rules : int nbcol
Rules : checkBoardSize(board) bool
Rules : isFull(board) bool
Rules : _checkHorizontalLines(board, row, col) bool, id, winningCell
Rules : _checkVerticalLines()
Rules : _checkDiagonalNWtoSE()
Rules : _checkDiagonalNetoSW()
Rules : checkAll()
Rules ..> Board