commit bb7a9f23254be0493e60b3c58e1e3822c981bd1a parent 3b5b493c79fa5636bcd095ad8f7c88fbd955cc98 Author: Michael Neuper <73108749+michaelneuper@users.noreply.github.com> Date: Fri, 15 Jul 2022 23:55:39 +0200 create Player.java Diffstat:
| A | src/model/Player.java | | | 25 | +++++++++++++++++++++++++ |
1 file changed, 25 insertions(+), 0 deletions(-)
diff --git a/src/model/Player.java b/src/model/Player.java @@ -0,0 +1,24 @@ +package model; + +import java.io.File; +import java.io.FileNotFoundException; +import java.util.Scanner; + +/** + * Handles player specific operations, such as deciding to hit or stand. + * @author michael + */ +public class Player extends Person { + + Deck playerDeck = new Deck(); // empty deck for the player + // private double balance; + // try { + // Scanner scFile = new Scanner(new File("db/balance.txt")); + // balance = scFile.nextDouble(); + // } catch (FileNotFoundException e) { + // System.out.println(e); + // } + double balance = 100.00d; + + Scanner betAmount = new Scanner(System.in); +} +\ No newline at end of file