ryanb / ruby-warrior

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

Quickrun command? #18

Open scottswezey opened 14 years ago

scottswezey commented 14 years ago

It might be useful to have a mode that skips all of the normal output and tells us how many turns it took, if we missed anything important, if we actually lived, etc.

I figure that we can test our changes quickly, and we can always run it normally if we need to see what's going on.

I envision something like: prompt$ rubywarrior --quick-run Success! You have found the stairs after 17 turns. You missed 1 captive. Level Score: 38 Time Bonus: 16 Total Score: 285 + 54 = 339 Would you like to continue? [yn]

scottswezey commented 14 years ago

On second thought, I found a ticket showing a similar request.

It seems "rubywarrior -s -t 0" does what I want just fine.

ryanb commented 14 years ago

Since this is the second time this has been mentioned I think I will add an option for it which basically does the same as -s -t 0.

Also I notice you added "You missed 1 captive." to the output which I think is also a great addition. Thanks!

ghost commented 12 years ago

It seems that the output is intentionally slowed to allow easier reading. Perhaps a parameter that speeds up the output but doesn't modify it? This would be very useful.