Program to refactor that plays a game of roulette
Names: Brenna Milligan and Elizabeth Dowd
- The
Gameclass is much more readable and extensible, because we got rid of the "if..else if...else if...." statements. - There are more classes, but that also means that the code is more modularized.
- We didn't feel there were any major trade-offs.
- We definitely prefer the new code, because it is more readable and extensible. For example, it was very easy to add three new types of bets.