Skip to content

Instantly share code, notes, and snippets.

@jdecuirm
Created January 27, 2015 04:10
Show Gist options
  • Select an option

  • Save jdecuirm/0a62aa6a795ce852bdb0 to your computer and use it in GitHub Desktop.

Select an option

Save jdecuirm/0a62aa6a795ce852bdb0 to your computer and use it in GitHub Desktop.
require './map.rb'
require './engine.rb'
require './scene.rb'
require './hero.rb'
puts "Hello, welcome to Medieval Kingdom!, first we have to create your character."
puts "Please tell me your name: "
print "> "
hero_name = $stdin.gets.chomp
hero = Hero.new(hero_name)
map = Map.new('old_house',hero)
puts "Ok thank you #{hero.name}. Now Let's begin the journey."
engine = Engine.new(map)
engine.play()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment