Browse Source

Added getPoints() to BlackJack

This method returns the points from the bot or the player
remotes/origin/quiz
Friederike von Gruben 2 years ago
parent
commit
905e5975ab
  1. 4
      src/main/java/org/bitbiome/classes/BlackJack.java

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

@ -49,4 +49,8 @@ public class BlackJack {
public String getPlayerName(Entity entity) {
return entity == Entity.PLAYER ? playerName : "BitBiome";
}
public int getPoints(Entity entity) {
return entity == Entity.PLAYER ? playerPoints : botPoints;
}
}
Loading…
Cancel
Save