Пример #1
0
 // Checks to see if the board is still playable
 // should be called after render
 public bool playable()
 {
     for (int row = 1; row < 9; row++)
     {
         for (int element = 1; element < 9; element++)
         {
             Tile tile = rows[row][element];
             if (tile.isAnEmpty())
             {
                 EmptySpace empty = (EmptySpace)tile;
                 if (empty.isMarked())
                 {
                     return(true);
                 }
             }
         }
     }
     return(false);
 }