Sha256: c5d6bfaa8c2c58626e6e6ce2137f06c56399f989fddb7edc869859bafe251d74

Contents?: true

Size: 328 Bytes

Versions: 2

Compression:

Stored size: 328 Bytes

Contents

module Rubinstein
  class Game

    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

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubinstein-0.0.2 lib/rubinstein/game.rb
rubinstein-0.0.1 lib/rubinstein/game.rb