Ejemplo n.º 1
0
 public GoGame(int boardSize)
 {
     GameGrid   = new GoPiece[boardSize, boardSize];
     blackScore = 0;
     whiteScore = 0;
     InitBoard(boardSize);
 }
Ejemplo n.º 2
0
 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);
         }
     }
 }