Browse Source

addBotMovesAfterPlayer

main
fdai7793 11 months ago
parent
commit
2c9c3acb68
  1. 5
      src/main/java/de/hsfulda/onses/services/GameService.java

5
src/main/java/de/hsfulda/onses/services/GameService.java

@ -145,6 +145,11 @@ public class GameService {
break; break;
} }
checkForWin(); checkForWin();
if (!this.test) {
if (!game.getPlayerService().getCurrentTurn()) {
game.getPlayerService().botMove();
}
}
} }
public boolean legalMove(Card card) { public boolean legalMove(Card card) {

Loading…
Cancel
Save