ryanb / ruby-warrior

Game written in Ruby for learning Ruby.
MIT License
3.83k stars 838 forks source link

Made runner.rb more readable, and added a reset option #67

Closed stefanlance closed 3 months ago

stefanlance commented 11 years ago

EDIT: Now it works, but the gem directory's runner.rb file must also be updated. See comments and commits below.

Original post: Though it doesn't work. Will look into this in the next few days. Also, I want to add a prompt to this so the user doesn't mistakenly type -r and reset their progress -- a check, such as, "Are you really sure you want to reset your progress?" would be good.

stefanlance commented 11 years ago

I figured out why it doesn't work: the runner.rb file in the rubywarrior gems directory doesn't get updated when the runner.rb file in the regular rubywarrior directory gets updated. This means that in addition to updating the program's runner.rb, the gem directory's file will also need to be updated.