Skip to content

Commit ff36143

Browse files
committed
asad
1 parent 4e3a9a4 commit ff36143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/com/group/golf/ai/GeneticBot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public GeneticBot(Course course, Ball ball) {
6060
@Override
6161
public void makeMove() {
6262
if (this.counter <= this.winner.getLastMove()) {
63-
if (this.counter < this.winner.getLandings().length &&
63+
while (this.counter < this.winner.getLandings().length &&
6464
this.winner.getLandings()[this.counter+1].equals(this.winner.getLandings()[this.counter])) {
6565
this.counter++;
6666
}

0 commit comments

Comments
 (0)