Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/dipinti test files #38

Open
wants to merge 151 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
151 commits
Select commit Hold shift + click to select a range
b7bd1c0
Star squad
Jul 13, 2021
05d5a74
edited GameInterface
Jul 13, 2021
aff72a2
Merge pull request #1 from NicholasWolak/master
NicholasWolak Jul 13, 2021
37cd7b0
completed Dice class and tests
Jul 13, 2021
abb420b
Merge pull request #2 from ZachSinger/master
ZachSinger Jul 13, 2021
9c56a53
Merge pull request #3 from Casino-Royale/master
NicholasWolak Jul 13, 2021
1da0132
Merge branch 'Casino-Royale:master' into master
NicholasWolak Jul 13, 2021
b9631bd
started slots class
Jul 13, 2021
ef99705
started slots class
Jul 13, 2021
b3eee43
Merge pull request #4 from Casino-Royale/Dev
tnguyen1912 Jul 13, 2021
d23c2a2
edited GameInterface
Jul 13, 2021
e14aeb8
started slots class
Jul 13, 2021
d937b7e
started slots class
Jul 13, 2021
f080d9f
Edited GameInterface
Jul 13, 2021
0a35cc9
Merge pull request #5 from tnguyen1912/master
tnguyen1912 Jul 13, 2021
28be7ba
Merge pull request #6 from Casino-Royale/Dev
NicholasWolak Jul 13, 2021
0e6255e
Started BlackJack, needs a lot of reform
Jul 13, 2021
d61b621
please work
Jul 13, 2021
b6997ba
Completed Beetle.java and tests for Beetle.java
Jul 13, 2021
b89d734
Merge pull request #7 from ZachSinger/master
ZachSinger Jul 13, 2021
6ddad3f
Player.java ready
Jul 13, 2021
76d125f
Have to reform cards, updating BlackJack
Jul 13, 2021
5bfc4e9
Merge pull request #9 from NicholasWolak/master
NicholasWolak Jul 13, 2021
f8aa1c3
Merge pull request #10 from Casino-Royale/master
NicholasWolak Jul 13, 2021
ab9b8d3
Merge pull request #8 from Dipinti3/Dev
NicholasWolak Jul 13, 2021
9280d16
Merge branch 'Casino-Royale:master' into master
ZachSinger Jul 13, 2021
879a3a1
Merge pull request #11 from Casino-Royale/Dev
ZachSinger Jul 13, 2021
8917f93
Merge branch 'Casino-Royale:master' into master
ZachSinger Jul 13, 2021
bd973ac
Ready 2 Merge
Jul 13, 2021
52b857a
Take this shit
Jul 13, 2021
4bdcff2
Merge pull request #12 from tnguyen1912/master
tnguyen1912 Jul 13, 2021
13c97cb
Merge pull request #13 from ZachSinger/master
ZachSinger Jul 13, 2021
151543f
SLOTS SLOTS SLOTS
Jul 13, 2021
c920eee
21 21 21
Jul 13, 2021
38df35b
Setting up my branch
Jul 13, 2021
4e0864f
fucking work
Jul 13, 2021
9c74036
what
Jul 13, 2021
8c83e9b
Merge pull request #14 from Casino-Royale/Nick
NicholasWolak Jul 13, 2021
079ecb1
pushin for the cushion
Jul 13, 2021
372acde
plz
Jul 13, 2021
698fc05
Solved some problems
Jul 13, 2021
13561fd
uhh
Jul 13, 2021
96fa77e
testing
Jul 13, 2021
c4d34c3
Edited BeetleGame
Jul 13, 2021
fb947bd
Merge branch 'master' into Dev
Jul 13, 2021
b7067a7
feat(black-jack): update readme for example
Jul 13, 2021
114de0d
Merge pull request #15 from Casino-Royale/feat/black-jack
NicholasWolak Jul 13, 2021
c3a89cc
Dev (#16)
ZachSinger Jul 13, 2021
56a1db9
feat/black-jack update
Jul 14, 2021
030dcf7
Merge pull request #17 from Casino-Royale/feat/black-jack
NicholasWolak Jul 14, 2021
dbda690
pulling
Jul 14, 2021
cde49a7
g
Jul 14, 2021
412c509
CasinoAccount and CasinoAccountManager.java (#19)
ZachSinger Jul 14, 2021
36b2994
plinkogame and plinkotest done
Jul 14, 2021
215c282
Feature/casino account (#20)
ZachSinger Jul 14, 2021
a2018af
Feature/casino account (#21)
ZachSinger Jul 14, 2021
71abb54
pulling (#22)
ZachSinger Jul 14, 2021
5c51613
plinko.java is ready
Jul 14, 2021
278a0ca
Feature/casino account (#23)
ZachSinger Jul 14, 2021
248f47f
(feat:black-jack) game logic completed, need refinment and bet input
Jul 14, 2021
6d3d1ac
Merge pull request #25 from Casino-Royale/feat/plinko
Dipinti3 Jul 14, 2021
eb43adc
Feature/slots (#24)
tnguyen1912 Jul 14, 2021
ffc4938
CasinoAccountManager and Casino thru to game selection. Account login…
Jul 14, 2021
6a7d660
attempting to fix issues with merge
Jul 14, 2021
9308a8f
(feat:black-jack) game logic built, continuing on formatting
Jul 14, 2021
321ff08
Feature/casino account (#27)
ZachSinger Jul 14, 2021
041b9d6
Merge branch 'Dev' into feat/black-jack
NicholasWolak Jul 14, 2021
f60d282
Feat/black jack (#26)
NicholasWolak Jul 14, 2021
d7b6482
commiting for merge
Jul 14, 2021
5b2842e
dev merge
Jul 14, 2021
0623f4b
(feat:black-jack) merging
Jul 14, 2021
d63da3d
Merge pull request #28 from Casino-Royale/feat/black-jack
NicholasWolak Jul 14, 2021
a867caf
added new comment in slots
Jul 14, 2021
f3a12d5
Merge pull request #29 from Casino-Royale/feature/slotsGAME
tnguyen1912 Jul 14, 2021
f751781
Changed Double data type to Integer in Player class
Jul 14, 2021
b997b84
Merge pull request #31 from Casino-Royale/feature/player
NicholasWolak Jul 14, 2021
e824278
(feat:black-jack) just to be safe
Jul 14, 2021
2a61307
Merge pull request #32 from Casino-Royale/feat/black-jack
NicholasWolak Jul 14, 2021
4b6447f
Safety check
Jul 14, 2021
9506a0a
Merge pull request #33 from Casino-Royale/feat/black-jack
NicholasWolak Jul 14, 2021
800164e
Updated player interface by removing run method, changed Double Integ…
Jul 14, 2021
895135d
finished getBetSelections
Jul 14, 2021
2f40239
Feature/beetle game (#34)
ZachSinger Jul 14, 2021
796b2c9
updated plinko.java without override methods
Jul 14, 2021
f79717e
also updated the plinkotest without overrides
Jul 14, 2021
591d902
Merge branch 'Dev' into feat/plinko
NicholasWolak Jul 14, 2021
e6c5995
pre-pull
Jul 14, 2021
57493fc
pre pull pt2
Jul 14, 2021
6b1442f
Merge pull request #35 from Casino-Royale/feat/plinko
NicholasWolak Jul 14, 2021
25ea655
working branch clean up
Jul 14, 2021
4ea382c
solid working branch for the the 14th
Jul 14, 2021
4fb6131
Merge pull request #36 from Casino-Royale/feat/black-jack
NicholasWolak Jul 14, 2021
c351388
resolved conflicts with previous merge to Dev branch
Jul 14, 2021
34371b1
Merge branch 'Dev' of https://github.com/Casino-Royale/casino.maven
Jul 14, 2021
a98113f
made more edits to slots game
Jul 14, 2021
9436624
new slots changes WITH updated player code
Jul 14, 2021
e1f867c
Merge pull request #38 from Casino-Royale/feature/slotsGAME
tnguyen1912 Jul 14, 2021
e67c9dd
Pushing for pull
Jul 14, 2021
09ceb31
Merge pull request #39 from Casino-Royale/feat/black-jack
NicholasWolak Jul 14, 2021
4b68a1a
Feature/beetle game test (#40)
ZachSinger Jul 14, 2021
f93574c
fixed unresolved/undetected merge issue in Player Class
Jul 14, 2021
67a1a60
(feat:black-jack) implementing 2 unique game conditions
Jul 14, 2021
273091b
Merge pull request #41 from Casino-Royale/feat/black-jack
NicholasWolak Jul 14, 2021
287d5c7
keno game is ready
Jul 14, 2021
98091c7
Merge pull request #42 from Casino-Royale/feat/keno
Dipinti3 Jul 14, 2021
0d6499a
Everything works except player
Jul 14, 2021
d4f21a9
NumberGuessGame.java and NumberGuessGameTests.java submitted (#43)
ZachSinger Jul 14, 2021
4bd4513
commit 620
Jul 14, 2021
3dda564
Merge pull request #44 from Casino-Royale/feature/slotsGAME
tnguyen1912 Jul 14, 2021
22c31a7
(feat:black-jack) cleaned the code
Jul 14, 2021
e84f109
Feature/number guessing (#45)
ZachSinger Jul 14, 2021
cf46939
new changes to slotsplayerclass
Jul 14, 2021
a2684bc
changes made to slotsGame line 178
Jul 14, 2021
271f247
most updated and most functional at 733
Jul 14, 2021
4da5da2
Merge pull request #46 from Casino-Royale/feature/slotsGAME
tnguyen1912 Jul 14, 2021
b8a628a
(feat:black-jack) Logic: completed / Test:To be done
Jul 15, 2021
f68de19
Merge pull request #47 from Casino-Royale/feat/black-jack
NicholasWolak Jul 15, 2021
e036e3b
Changed player class, slots fully functional
Jul 15, 2021
9bcd361
Merge branch 'Dev' into feature/slotsGAME
NicholasWolak Jul 15, 2021
43ea867
Merge pull request #48 from Casino-Royale/feature/slotsGAME
NicholasWolak Jul 15, 2021
12143a6
prepull
Jul 15, 2021
7ebfc4d
prepull
Jul 15, 2021
d397cec
(feat:black-jack) implemented betting
Jul 15, 2021
4a87167
Linked BlackJack and Beetle instantiation
Jul 15, 2021
43225f3
Merge pull request #49 from Casino-Royale/feat/black-jack
NicholasWolak Jul 15, 2021
13f6048
Working on IO for BeetleGame.java and routed Beetle through Casino so…
ZachSinger Jul 15, 2021
2a9c2e9
edited numberguessgame
Jul 15, 2021
a587568
(feat:black-jack) slight loop issue, see comments
Jul 15, 2021
16545d8
(feat:black-jack) added comments to polish
Jul 15, 2021
68792f6
Merge pull request #51 from Casino-Royale/feat/black-jack
NicholasWolak Jul 15, 2021
19ac039
Added IO for Beetle.java, added input controls and betting. Next upda…
Jul 15, 2021
c5ddee5
many new codes in numberGuessGame
Jul 15, 2021
69c8ec4
new commit 101
Jul 15, 2021
2cc5174
Latest commit at 107
Jul 15, 2021
07628b6
Merge pull request #52 from Casino-Royale/feature/slotsGAME
tnguyen1912 Jul 15, 2021
58542c3
pre finish changes (#53)
ZachSinger Jul 15, 2021
579f022
new plinko game is ready
Jul 15, 2021
902b078
new keno game is ready
Jul 15, 2021
430bd89
Final payout information and new line formatting/spacing implemented …
Jul 15, 2021
f8f11f3
trying to merge plinko and keno games
Jul 15, 2021
00ad0fa
newLine error fixed in Beetle
Jul 15, 2021
54ed51e
after conflicts resolved
Jul 15, 2021
7e317e0
Merge pull request #55 from Casino-Royale/feature/DipintiKeno
NicholasWolak Jul 15, 2021
00224c4
Added CSVUtils class, next feature will be implementation so user can…
ZachSinger Jul 15, 2021
7692730
switching to new branch after adding options for saving/loading
Jul 15, 2021
f65c2c7
(feat:black-jack) fixed the death loop
Jul 15, 2021
cd5f41b
CSV loader and saver workinggit add -u (#57)
ZachSinger Jul 15, 2021
cc93126
(feat:black-jack) functionality complete, polishing formatting
Jul 15, 2021
da4e8d4
Merge pull request #58 from Casino-Royale/feat/black-jack
NicholasWolak Jul 15, 2021
088d9cd
added test files
Jul 15, 2021
4671932
Merge branch 'Dev' into feature/DipintiTestFiles
NicholasWolak Jul 15, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,8 @@
* from the browser, navigate to the _forked_ project from **your** github account.
* click the `Pull Requests` tab.
* select `New Pull Request`




## Adding a line to the readMe for git hub example
72 changes: 55 additions & 17 deletions src/main/java/com/github/zipcodewilmington/Casino.java
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
package com.github.zipcodewilmington;

import com.github.zipcodewilmington.casino.CasinoAccount;
import com.github.zipcodewilmington.casino.CasinoAccountManager;
import com.github.zipcodewilmington.casino.GameInterface;
import com.github.zipcodewilmington.casino.PlayerInterface;
import com.github.zipcodewilmington.casino.*;
import com.github.zipcodewilmington.casino.games.Beetle.BeetleGame;
import com.github.zipcodewilmington.casino.games.blackjack.BlackJackGame;
import com.github.zipcodewilmington.casino.games.numberguess.NumberGuessGame;
import com.github.zipcodewilmington.casino.games.numberguess.NumberGuessPlayer;
import com.github.zipcodewilmington.casino.games.plinko.PlinkoGame;
import com.github.zipcodewilmington.casino.games.slots.SlotsGame;
import com.github.zipcodewilmington.casino.games.slots.SlotsPlayer;
import com.github.zipcodewilmington.utils.AnsiColor;
import com.github.zipcodewilmington.utils.CSVUtils;
import com.github.zipcodewilmington.utils.IOConsole;

import java.io.IOException;
import java.util.Locale;

/**
* Created by leon on 7/21/2020.
*/
public class Casino implements Runnable {
private final IOConsole console = new IOConsole(AnsiColor.BLUE);

private CasinoAccount casinoAccount;
private PlayerInterface player;
@Override
public void run() {
String arcadeDashBoardInput;
Expand All @@ -29,27 +34,36 @@ public void run() {
CasinoAccount casinoAccount = casinoAccountManager.getAccount(accountName, accountPassword);
boolean isValidLogin = casinoAccount != null;
if (isValidLogin) {


String gameSelectionInput = getGameSelectionInput().toUpperCase();
if (gameSelectionInput.equals("SLOTS")) {
play(new SlotsGame(), new SlotsPlayer());
} else if (gameSelectionInput.equals("NUMBERGUESS")) {
play(new NumberGuessGame(), new NumberGuessPlayer());
} else {
// TODO - implement better exception handling
String errorMessage = "[ %s ] is an invalid game selection";
throw new RuntimeException(String.format(errorMessage, gameSelectionInput));
}
processGameSelection(gameSelectionInput);
} else {
// TODO - implement better exception handling
String errorMessage = "No account found with name of [ %s ] and password of [ %s ]";
throw new RuntimeException(String.format(errorMessage, accountPassword, accountName));
//throw new RuntimeException(String.format(errorMessage, accountPassword, accountName));
}
} else if ("create-account".equals(arcadeDashBoardInput)) {
console.println("Welcome to the account-creation screen.");
String accountName = console.getStringInput("Enter your account name:");
String accountPassword = console.getStringInput("Enter your account password:");
CasinoAccount newAccount = casinoAccountManager.createAccount(accountName, accountPassword);
casinoAccountManager.registerAccount(newAccount);
this.casinoAccount = newAccount;
casinoAccount.alterAccountBalance(500);
this.player = new Player(accountName, casinoAccount);
this.player.setArcadeAccount(casinoAccount);
} else if("save-account".equals(arcadeDashBoardInput)){
try {
CSVUtils.csvFileSaver(this.player.getArcadeAccount());
} catch (IOException e) {
e.printStackTrace();
console.println("Save unsuccessful, refer to error message above for more information");
}
} else if("load-saved-account".equals(arcadeDashBoardInput)){
this.casinoAccount = CSVUtils.loadData();
this.player = new Player(this.casinoAccount.getAccountName(), this.casinoAccount);
casinoAccountManager.registerAccount(this.casinoAccount);
}
} while (!"logout".equals(arcadeDashBoardInput));
}
Expand All @@ -58,18 +72,42 @@ private String getArcadeDashboardInput() {
return console.getStringInput(new StringBuilder()
.append("Welcome to the Arcade Dashboard!")
.append("\nFrom here, you can select any of the following options:")
.append("\n\t[ create-account ], [ select-game ]")
.append("\n\t[ create-account ], [ select-game ], [ load-saved-account ], [ save-account ]")
.toString());
}

private String getGameSelectionInput() {
return console.getStringInput(new StringBuilder()
.append("Welcome to the Game Selection Dashboard!")
.append("\nFrom here, you can select any of the following options:")
.append("\n\t[ SLOTS ], [ NUMBERGUESS ]")
.append("\n\t[ SLOTS ], [ NUMBERGUESS ], [ PLINKO ], [ BEETLE ], [ BLACKJACK ]" +
"[ KENO ]")
.toString());
}

private void processGameSelection(String input){
input = input.toLowerCase(Locale.ROOT);
GameInterface gameObject;
switch(input){
case "beetle":
gameObject = new BeetleGame();
break;
case "slots":
gameObject = new SlotsGame();
break;
case "blackjack":
gameObject = new BlackJackGame();
break;
case "numberguess":
gameObject = new NumberGuessGame();
break;
default:
gameObject = new BeetleGame();
}

play(gameObject, player);
}

private void play(Object gameObject, Object playerObject) {
GameInterface game = (GameInterface)gameObject;
PlayerInterface player = (PlayerInterface)playerObject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
package com.github.zipcodewilmington;

import com.github.zipcodewilmington.casino.games.slots.SlotsGame;

public class MainApplication {
public static void main(String[] args) {
new Casino().run();

// SlotsGame slotGame = new SlotsGame();
// slotGame.run();
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,38 @@
package com.github.zipcodewilmington.casino;

import com.github.zipcodewilmington.Casino;

import java.util.ArrayList;
import java.util.List;

/**
* Created by leon on 7/21/2020.
* `ArcadeAccount` is registered for each user of the `Arcade`.
* The `ArcadeAccount` is used to log into the system to select a `Game` to play.
*/
public class CasinoAccount {
private String password;
private String accountName;
private Integer accountBalance = 0;

public CasinoAccount(String accountName, String accountPassword){
this.accountName = accountName;
this.password = accountPassword;
}

public String getPassword() {
return password;
}

public String getAccountName() {
return accountName;
}

public Integer getAccountBalance() {
return accountBalance;
}

public void alterAccountBalance(Integer value) {
this.accountBalance += value;
}
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,33 @@
package com.github.zipcodewilmington.casino;

import java.util.ArrayList;
import java.util.List;

/**
* Created by leon on 7/21/2020.
* `ArcadeAccountManager` stores, manages, and retrieves `ArcadeAccount` objects
* it is advised that every instruction in this class is logged
*/
public class CasinoAccountManager {
private List<CasinoAccount> accountList = new ArrayList<CasinoAccount>();
/**
* @param accountName name of account to be returned
* @param accountPassword password of account to be returned
* @return `ArcadeAccount` with specified `accountName` and `accountPassword`
*/
public CasinoAccount getAccount(String accountName, String accountPassword) {
for(int i = 0; i < accountList.size(); i++){
CasinoAccount currentAccount = accountList.get(i);
String pass = currentAccount.getPassword();
String name = currentAccount.getAccountName();
if(name.equals(accountName))
if(pass.equals(accountPassword)){
return currentAccount;
} else {
System.out.println("Account Name or Password does not match. Are you really you?");
return null;
}
}
String currentMethodName = new Object(){}.getClass().getEnclosingMethod().getName();
String currentClassName = getClass().getName();
String errorMessage = "Method with name [ %s ], defined in class with name [ %s ] has not yet been implemented";
Expand All @@ -26,10 +42,12 @@ public CasinoAccount getAccount(String accountName, String accountPassword) {
* @return new instance of `ArcadeAccount` with specified `accountName` and `accountPassword`
*/
public CasinoAccount createAccount(String accountName, String accountPassword) {
String currentMethodName = new Object(){}.getClass().getEnclosingMethod().getName();
String currentClassName = getClass().getName();
String errorMessage = "Method with name [ %s ], defined in class with name [ %s ] has not yet been implemented";
throw new RuntimeException(String.format(errorMessage, currentMethodName, currentClassName));
CasinoAccount myAccount = new CasinoAccount(accountName, accountPassword);
return myAccount;
//String currentMethodName = new Object(){}.getClass().getEnclosingMethod().getName();
//String currentClassName = getClass().getName();
//String errorMessage = "Method with name [ %s ], defined in class with name [ %s ] has not yet been implemented";
//throw new RuntimeException(String.format(errorMessage, currentMethodName, currentClassName));
}

/**
Expand All @@ -38,9 +56,10 @@ public CasinoAccount createAccount(String accountName, String accountPassword) {
* @param casinoAccount the arcadeAccount to be added to `this.getArcadeAccountList()`
*/
public void registerAccount(CasinoAccount casinoAccount) {
String currentMethodName = new Object(){}.getClass().getEnclosingMethod().getName();
String currentClassName = getClass().getName();
String errorMessage = "Method with name [ %s ], defined in class with name [ %s ] has not yet been implemented";
throw new RuntimeException(String.format(errorMessage, currentMethodName, currentClassName));
this.accountList.add(casinoAccount);
//String currentMethodName = new Object(){}.getClass().getEnclosingMethod().getName();
//String currentClassName = getClass().getName();
//String errorMessage = "Method with name [ %s ], defined in class with name [ %s ] has not yet been implemented";
//throw new RuntimeException(String.format(errorMessage, currentMethodName, currentClassName));
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package com.github.zipcodewilmington.casino;

/**
* Created by leon on 7/21/2020.
* Author: Nathan
* Date: 7/12/21
*/
public interface GameInterface extends Runnable {
/**
Expand All @@ -20,4 +21,23 @@ public interface GameInterface extends Runnable {
* specifies how the game will run
*/
void run();

/**
* Calculate player's winning payout amount of bet x multiplier
* @return (double) amount of money winnings
*/
Integer calculateWinnings(Integer multiplier, Integer betAmount);

/**
* Subtract the bet amount from player's balance
*/
void subtractBetFromBalance(Integer betAmount);

/**
* Add winnings amount to player's balance
*/
void addMoneyToBalance(PlayerInterface Player, Integer winnings);



}
51 changes: 51 additions & 0 deletions src/main/java/com/github/zipcodewilmington/casino/Player.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
package com.github.zipcodewilmington.casino;


public class Player implements PlayerInterface{

String name;
Integer balance;
Integer currentBet = 0;
CasinoAccount arcadeAccount;

public Player(String name, CasinoAccount account) {
this.name = name;
this.arcadeAccount = account;
}

public String getName() {
return name;
}


public Integer getBalance() {
return balance;
}

public void setCurrentBet(Integer currentBet) {
this.currentBet = currentBet;
}

public void setBalance(Integer deposit) {
this.balance = balance + deposit;
}


public Integer makeBet(Integer betAmount) {
currentBet = betAmount;
balance = balance - currentBet;
return currentBet;
}

public Integer getCurrentBet() {
return currentBet;
}

public CasinoAccount getArcadeAccount(){
return this.arcadeAccount;
}

public void setArcadeAccount(CasinoAccount arcadeAccount) {
this.arcadeAccount = arcadeAccount;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ public interface PlayerInterface {
* @return the `ArcadeAccount` used to log into the `Arcade` system to play this game
*/
CasinoAccount getArcadeAccount();

void setArcadeAccount(CasinoAccount casinoAccount);
/**
* Defines how a specific implementation of `PlayerInterface` plays their respective game.
* @param <SomeReturnType> specify any return type you would like here
* @return whatever return value you would like
*/
<SomeReturnType> SomeReturnType play();


//<SomeReturnType> SomeReturnType play();
}
Loading