-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathBet.java
More file actions
executable file
·47 lines (38 loc) · 926 Bytes
/
Bet.java
File metadata and controls
executable file
·47 lines (38 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package roulette;
/**
* Represents player's attempt to bet on outcome of the roulette wheel's spin.
*
* @author Robert C. Duvall
*/
public class Bet {
private String myDescription;
private int myOdds;
/**
* Constructs a bet with the given name and odds.
*
* @param description name of this kind of bet
* @param odds odds given by the house for this kind of bet
*/
public Bet (String description, int odds) {
myDescription = description;
myOdds = odds;
}
/**
* @return odds given by the house for this kind of bet
*/
public int getOdds () {
return myOdds;
}
/**
* @return name of this kind of bet
*/
public String getDescription () {
return myDescription;
}
protected String placeBet() {
return null;
}
protected boolean betIsMade(Wheel w, String betChoice){
return false;
}
}