Class: Menu

Inherits:
Object
  • Object
show all
Defined in:
lib/ttt_malisa/menu.rb

Instance Method Summary collapse

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_choiceObject



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