commit aa1b16d7e9c83234b8cff0df897235a1c0cbbde6 parent 29eb28e89afc5c19474c4766fe3d3290f993a4a3 Author: Michael Neuper <73108749+michaelneuper@users.noreply.github.com> Date: Fri, 7 Oct 2022 21:05:38 +0200 update Player.java Diffstat:
| M | src/model/Player.java | | | 34 | +++++++++++++++++++++++----------- |
1 file changed, 23 insertions(+), 11 deletions(-)
diff --git a/src/model/Player.java b/src/model/Player.java @@ -6,19 +6,31 @@ import java.util.Scanner; /** * Handles player specific operations, such as deciding to hit or stand. - * @author michael + * + * @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; + /** + * Creates a new player + */ + public Player() { + super.setName("Player"); + } + + public void makeDecision() { + // TODO + } - Scanner betAmount = new Scanner(System.in); + // 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