Created
April 27, 2013 13:53
-
-
Save anonymous/5473207 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Roulette; | |
public class Passenger57 { | |
public Table table; | |
public Outcome black; | |
public Passenger57(Table table){ | |
table = new Table(); | |
black = new Outcome("Black", 1); | |
} | |
void placeBets(){ | |
Bet bet = new Bet(100, black); | |
table.placeBet(bet); | |
} | |
void win(Bet bet){ | |
System.out.println("You've won: " + bet.winAmount()); | |
} | |
void lose(Bet bet){ | |
System.out.println("You lost!"+bet.loseAmount()+ ":/"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment