From f5aa351958c2543ced8deb60b0210af0421dec4a Mon Sep 17 00:00:00 2001 From: Friederike von Gruben Date: Mon, 6 Feb 2023 14:06:07 +0100 Subject: [PATCH] Edited BlackJack constructor Set playerPoints --- src/main/java/org/bitbiome/classes/BlackJack.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/bitbiome/classes/BlackJack.java b/src/main/java/org/bitbiome/classes/BlackJack.java index c0bc92b..e69c7f5 100644 --- a/src/main/java/org/bitbiome/classes/BlackJack.java +++ b/src/main/java/org/bitbiome/classes/BlackJack.java @@ -33,9 +33,11 @@ public class BlackJack { } private String playerName; + private int playerPoints; public BlackJack(String playerName) { this.playerName = playerName; + this.playerPoints = 0; } }