public class Simulation extends Match
Match.States| Constructor and Description |
|---|
Simulation(int credits,
int bet,
int nDeals)
Constructor of simulation mode
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
advice()
Simpler implementation of advice without prints to the console
|
boolean |
bet(int amount)
Simpler implementation of bet that fully eliminates the verifications and the prints to
console
|
java.lang.String |
deal()
Simpler implementation of deal without prints to console
|
java.lang.String |
hold(int[] positions)
Simpler implementation of hold without prints to the console
|
public Simulation(int credits,
int bet,
int nDeals)
credits - Amount of credit that the player has initiallybet - Amount of each bet madenDeals - Number of deals to makepublic boolean bet(int amount)
bet in class Matchamount - Amount to betMatch.bet(int)public java.lang.String deal()
deal in class MatchMatch.deal()public java.lang.String hold(int[] positions)
hold in class Matchpositions - Positions of the cards that are to maintainMatch.hold(int[])public int[] advice()
advice in class MatchMatch.advice()