Skip to content

Commit

Permalink
fixing subtle logic bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lucky-bai committed Dec 30, 2012
1 parent 3bff237 commit bf7bc2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MSolver.java
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ static void tankRecurse(ArrayList<Pair> borderTiles, int k){
int surround = 0;
if((i==0&&j==0) || (i==BoardHeight-1 && j==BoardWidth-1))
surround = 3;
if(i==0 || j==0 || i==BoardHeight-1 || j==BoardWidth-1)
else if(i==0 || j==0 || i==BoardHeight-1 || j==BoardWidth-1)
surround = 5;
else surround = 8;

Expand Down

0 comments on commit bf7bc2f

Please sign in to comment.