Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
Qualify static access
Browse files Browse the repository at this point in the history
  • Loading branch information
StrangerCoug committed Sep 4, 2023
1 parent 0234dc8 commit 30a91ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public static void main(String[] args) {
int gameSelected = Integer.parseInt(entry);
if (gameSelected >= 1 && gameSelected <= 9)
validInput = true;
game = returnGame(gameSelected);
game = FreeCasino.returnGame(gameSelected);
}
catch (NumberFormatException e) {
System.out.println("Invalid input.");
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/com/github/strangercoug/freecasino/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,30 +53,30 @@ public Player(String name, boolean isHuman, BigDecimal funds) {
}

public Player() {
this(DEFAULT_NAME, true, DEFAULT_STARTING_FUNDS);
this(Player.DEFAULT_NAME, true, Player.DEFAULT_STARTING_FUNDS);
}
public Player(String name) {
this(name, true, DEFAULT_STARTING_FUNDS);
this(name, true, Player.DEFAULT_STARTING_FUNDS);
}

public Player(boolean isHuman) {
this(DEFAULT_NAME, isHuman, DEFAULT_STARTING_FUNDS);
this(Player.DEFAULT_NAME, isHuman, Player.DEFAULT_STARTING_FUNDS);
}

public Player(BigDecimal funds) {
this(DEFAULT_NAME, true, funds);
this(Player.DEFAULT_NAME, true, funds);
}

public Player(String name, boolean isHuman) {
this(name, isHuman, DEFAULT_STARTING_FUNDS);
this(name, isHuman, Player.DEFAULT_STARTING_FUNDS);
}

public Player(String name, BigDecimal funds) {
this(name, true, funds);
}

public Player(boolean isHuman, BigDecimal funds) {
this(DEFAULT_NAME, isHuman, funds);
this(Player.DEFAULT_NAME, isHuman, funds);
}

public String getName() {
Expand Down

0 comments on commit 30a91ec

Please sign in to comment.