コード例 #1
0
 public GoGame(int boardSize)
 {
     GameGrid   = new GoPiece[boardSize, boardSize];
     blackScore = 0;
     whiteScore = 0;
     InitBoard(boardSize);
 }
コード例 #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);
         }
     }
 }