commit 74f7e3023ebdadc3efe0be2abeef831e1877d368 parent 18001964e4791ee947e13bc9b5808c1adaca51f9 Author: Michael Neuper <73108749+michaelneuper@users.noreply.github.com> Date: Sat, 8 Oct 2022 12:09:00 +0200 minor changes Diffstat:
| M | src/controller/Controller.java | | | 4 | +--- |
| M | src/view/Main.java | | | 4 | ++-- |
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/controller/Controller.java b/src/controller/Controller.java @@ -35,14 +35,12 @@ public class Controller { dealer = new Dealer(); player = new Player(); - - startRound(); } /** * Handles logic for each round */ - private void startRound() { + public void startRound() { // if we run out of cards if(wins > 0 || losses > 0 || pushes > 0) { diff --git a/src/view/Main.java b/src/view/Main.java @@ -11,7 +11,7 @@ public class Main { System.out.println("Welcome to LIBREJACK!"); - Controller blackjack = new Controller(); - + Controller librejack = new Controller(); + librejack.startRound(); } }