diff --git a/PuzzlePlayer/Binary.cs b/PuzzlePlayer/Binary.cs index 41fc11ef21bf3f7cb57d7c231b788aea7ec4f47c..0f954f4f33ab2ccea0cdf0044efcb1687e1c6c0c 100644 --- a/PuzzlePlayer/Binary.cs +++ b/PuzzlePlayer/Binary.cs @@ -436,8 +436,8 @@ namespace PuzzlePlayer_Namespace int countRow = 0, countCol = 0; for (int i = 0; i < b.GetLength(0); i++) { - if(b[i,y] == checkFor) countRow++; - if(b[x,i] == checkFor) countCol++; + if (b[i, y] == checkFor) countRow++; + if (b[x, i] == checkFor) countCol++; } // if there are more counted then possible return false @@ -449,6 +449,7 @@ namespace PuzzlePlayer_Namespace return true; return false; + } public override void TileInput(Point p, int x) { if (x==0 || x==1) boardState[p.X, p.Y] = x;