Skip to content

mbazero/example_roulette

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

example_roulette

Program to refactor that plays a game of roulette

mba13 and rrw12

We made Bet into an abstract class and defined two new methods: placeBet and betisMade. Then we created new Bet classes that extended Bet called ColorBet, OddEvenBet, SequenceBet. Each of these classes implemented the abtract methods. We deleted the placeBet and betisMade methods from the game class, and changed whichBet to point to the actual Bet instead of an int representation of the Bet.

We implemented getOdds and getDescription in the Bet superclass. We also moved the betChoice variable from the Game class to the Bet superclass.

About

Program to refactor that plays a game of roulette

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%