kevindelgado / example_roulette

Program to refactor that plays a game of roulette

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

example_roulette

Georgia Tse and Kevin Delgado

Program to refactor that plays a game of roulette

We decided to make subclasses for each type of bet. The methods in Game calls a helper method whose implementation is unique to each class, but general method is common to bet and is thus an abstract method in Bet.

Design considerations included, whether Wheel should be passed in as a parameter and if the bet's value should be an instance variable in the bet subclass.

About

Program to refactor that plays a game of roulette

License:MIT License


Languages

Language:Java 100.0%