From 97bf91216ec5ac5d63dab765048dc6febccc550b Mon Sep 17 00:00:00 2001 From: Thomas BARBIER Date: Tue, 22 Nov 2022 15:14:35 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'README.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 175d13f..1e506d7 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,30 @@ ```mermaid classDiagram -Player : int id -Player : string nom + 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 : name + Rules : nbrow + Rules : 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 ``` \ No newline at end of file