public GoGame(int boardSize) { GameGrid = new GoPiece[boardSize, boardSize]; blackScore = 0; whiteScore = 0; InitBoard(boardSize); }
private void InitBoard(int boardSize) { for (int c = 0; c < boardSize; c++) { for (int r = 0; r < boardSize; r++) { GameGrid[c, r] = new GoPiece(r, c); } } }