Class: Rubinstein::Game
- Inherits:
-
Object
- Object
- Rubinstein::Game
- Defined in:
- lib/rubinstein/game.rb
Class Method Summary collapse
Class Method Details
.run(world) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/rubinstein/game.rb', line 4 def self.run(world) runner = Runner.new(world) puts "Welcome to the text adventure game!" print "> " until (input = $stdin.gets.chomp) == "exit" runner.__execute(input.downcase) print "> " end puts "Thanks for playing" end |