Class: PlayerFactory
- Inherits:
-
Object
- Object
- PlayerFactory
- Defined in:
- lib/player_factory.rb
Instance Method Summary collapse
Instance Method Details
#create_players(player_option, command_line_ui) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/player_factory.rb', line 6 def create_players(player_option, command_line_ui) if player_option == PlayerOptions::HUMAN_VS_HUMAN human_vs_human(command_line_ui) elsif player_option == PlayerOptions::HUMAN_VS_AI human_vs_ai(command_line_ui) else ai_vs_human(command_line_ui) end end |