public Board(int i_boardSize, Pieces i_FirstPlayersPieces, Pieces i_SecondPlayersPieces) { this.m_sizeOfBoard = i_boardSize; this.m_Board = new Piece[i_boardSize, i_boardSize]; this.m_FirstPlayersPieces = i_FirstPlayersPieces; this.m_SecondPlayersPieces = i_SecondPlayersPieces; this.BuildBoard(); }
public void CheckerBoard(Pieces i_pieces) { Piece currPiece; for (int indexOfPiece = 0; indexOfPiece < i_pieces.GetNumOfPieces; indexOfPiece++) { currPiece = i_pieces.GetPiece(indexOfPiece); if (currPiece != null) { this.m_Board[currPiece.Row, currPiece.Column] = currPiece; } } }