diff --git a/Connect4/connect4_lib/Sources/connect4_lib/Board.swift b/Connect4/connect4_lib/Sources/connect4_lib/Board.swift index e26395a..717ec9c 100644 --- a/Connect4/connect4_lib/Sources/connect4_lib/Board.swift +++ b/Connect4/connect4_lib/Sources/connect4_lib/Board.swift @@ -4,6 +4,14 @@ public struct Board : CustomStringConvertible { public let nbRows: Int public let nbCols: Int + + + /// Watch your indices -- in a empty 3x3 grid, if you insert a chip at column 0, it will fall down to grid[2][0] + /// 0 1 2 + /// 0 - - - + /// 1 - - - + /// 2 x - - + /// public var grid : [[Int?]] { _grid } var _nbFree: Int var _grid: [[Int?]]