Class: Robot::Simulator::UI::CLI
- Inherits:
-
Thor
- Object
- Thor
- Robot::Simulator::UI::CLI
- Defined in:
- lib/robot/simulator/ui/cli.rb
Instance Method Summary collapse
Instance Method Details
#start_game ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/robot/simulator/ui/cli.rb', line 11 def start_game @controller = Controller.new if [:file] commands = read_commands_from_file [:file] else commands = read_commands_from_console end commands.each {|command| dispatch_command command } end |