Skip to content

Commit

Permalink
Release 1.6 - Fix issue #3, the endgame check.
Browse files Browse the repository at this point in the history
  • Loading branch information
scoutant committed Dec 23, 2011
1 parent 33c8518 commit ebd1b96
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/org/scoutant/blokish/model/AI.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ public boolean hasMove(int color) {
for (Square seed : board.seeds()) {
for (int p=0; p<board.pieces.size(); p++) {
Piece piece = board.pieces.get(p);
for (int r=0; r<piece.rotations; r++, piece.rotate(1)) {
for( int f=0; f<piece.flips; f++, piece.flip()) {
// Fixing issue #3, changing order rotate/flip
for( int f=0; f<piece.flips; f++, piece.flip()) {
for (int r=0; r<piece.rotations; r++, piece.rotate(1)) {
for (Square s : piece.squares()) {
int i = seed.i - s.i;
int j = seed.j - s.j;
Expand Down

0 comments on commit ebd1b96

Please sign in to comment.