Beispiel #1
0
 public static bool IsEmpty(BoardModel bm)
 {
     for (int row = 1; row <= bm.width; row++)
     {
         for (int col = 1; col <= bm.width; col++)
         {
             if (bm.GetCell(row, col) != CellState.EMPTY)
             {
                 return false;
             }
         }
     }
     return true;
 }
Beispiel #2
0
 public static string GetCellLabel(BoardModel bm, int row, int col)
 {
     return CellStateToString(bm.GetCell(row, col)) + row + ":" + col;
 }