Class: Menu
- Inherits:
-
Object
- Object
- Menu
- Defined in:
- lib/ttt_malisa/menu.rb
Instance Method Summary collapse
-
#initialize(display) ⇒ Menu
constructor
A new instance of Menu.
- #player_choice ⇒ Object
Constructor Details
#initialize(display) ⇒ Menu
Returns a new instance of Menu.
3 4 5 |
# File 'lib/ttt_malisa/menu.rb', line 3 def initialize(display) @display = display end |
Instance Method Details
#player_choice ⇒ Object
7 8 9 10 11 12 |
# File 'lib/ttt_malisa/menu.rb', line 7 def player_choice @display.player_choice potential_choice = @display.retrieve_user_input choice = check_game_choice(potential_choice) choice end |