Skip to content

Commit

Permalink
Merge pull request #1 from JJ-Atkinson/master
Browse files Browse the repository at this point in the history
Fix 2 bugs related to AbstractGame.next() and IteratedGame.finished()
  • Loading branch information
nathanmerrill authored Feb 24, 2017
2 parents 08929d4 + fb6e26b commit 9a4631f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public final boolean next(){
return true;
}
step();
return finished();
return !finished();
}

public abstract boolean finished();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ protected void step() {

@Override
public boolean finished() {
return iterations >= 0;
return iterations <= 0;
}
}

0 comments on commit 9a4631f

Please sign in to comment.