Browse Source

removeCardFromBotDeck

main
fdai7793 11 months ago
parent
commit
b068cb2cf4
  1. 3
      src/main/java/de/hsfulda/onses/services/PlayerService.java

3
src/main/java/de/hsfulda/onses/services/PlayerService.java

@ -63,7 +63,8 @@ public class PlayerService {
public void botMove() {
for (int i = 0; i < this.playerList.getLast().getPlayerDeck().size(); i++) {
if (getGame().getGameService().legalMove(this.playerList.getLast().getPlayerDeck().get(i))) {
//do something...
this.removeCardFromPlayerDeck(this.playerList.getLast().getPlayerDeck().get(i));
break;
}
}
}

Loading…
Cancel
Save