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; }
public static string GetCellLabel(BoardModel bm, int row, int col) { return CellStateToString(bm.GetCell(row, col)) + row + ":" + col; }