Browse Source

Added isIn() to BlackJack

This method returns whether the bot or the player is in the game
remotes/origin/quiz
Friederike von Gruben 2 years ago
parent
commit
09e3cdce30
  1. 4
      src/main/java/org/bitbiome/classes/BlackJack.java

4
src/main/java/org/bitbiome/classes/BlackJack.java

@ -53,4 +53,8 @@ public class BlackJack {
public int getPoints(Entity entity) {
return entity == Entity.PLAYER ? playerPoints : botPoints;
}
public boolean isIn(Entity entity) {
return entity == Entity.PLAYER ? playerIn : botIn;
}
}
Loading…
Cancel
Save