From 905e5975abc31b54e5e66e32ce51eff15b4cfbe5 Mon Sep 17 00:00:00 2001 From: Friederike von Gruben Date: Mon, 6 Feb 2023 14:10:08 +0100 Subject: [PATCH] Added getPoints() to BlackJack This method returns the points from the bot or the player --- src/main/java/org/bitbiome/classes/BlackJack.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/bitbiome/classes/BlackJack.java b/src/main/java/org/bitbiome/classes/BlackJack.java index 5a0a341..b4ed1f9 100644 --- a/src/main/java/org/bitbiome/classes/BlackJack.java +++ b/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; + } }