librejack

Blackjack clone written in java
git clone https://github.com/michaelneuper/librejack.git
README | Files | Log | Refs | LICENSE

commit 44505942c5ad4b8126aa6542cb5a479cb32a0334
parent 39264b3b79c2515fdac70210258f3def1ab30376
Author: Michael Neuper <73108749+michaelneuper@users.noreply.github.com>
Date:   Fri, 15 Jul 2022 23:54:40 +0200

create Controller.java

Diffstat:
Asrc/controller/Controller.java | 21+++++++++++++++++++++
1 file changed, 21 insertions(+), 0 deletions(-)

diff --git a/src/controller/Controller.java b/src/controller/Controller.java @@ -0,0 +1,20 @@ +package controller; + +/** + * Handles most of the game logic + * @author michael + */ +public class Controller { + + private int wins, losses, pushes; + + /** + * Controller constructor + * Initialises score to 0 + */ + public Controller() { + wins = 0; + losses = 0; + pushes = 0; + } +} +\ No newline at end of file