From 4897a2321cf504b1bfab3747972f2522323791dc Mon Sep 17 00:00:00 2001 From: Friederike von Gruben Date: Mon, 6 Feb 2023 14:13:19 +0100 Subject: [PATCH] Added playerOut() to BlackJack This method sets the current playerIn state to false --- 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 9df3478..19d210e 100644 --- a/src/main/java/org/bitbiome/classes/BlackJack.java +++ b/src/main/java/org/bitbiome/classes/BlackJack.java @@ -89,4 +89,8 @@ public class BlackJack { return false; } } + + public void playerOut() { + this.playerIn = false; + } }