ryanb / ruby-warrior

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

Make UI delay time configurable #9

Closed ryanb closed 14 years ago

ryanb commented 15 years ago

The rubywarrior command should support an option which allows one to specify the user-interface message delay time. For example:

rubywarrior -t 0.3

This will set the time to 0.3 seconds between displaying messages in the UI.

KieranP commented 15 years ago

I think a silent mode would be neat too (would come in handy for epic mode). It'll only output if one fails.

ryanb commented 15 years ago

Thanks for the suggestion. You could give it a zero time and pipe it through tail to simulate this.

rubywarrior -t 0 | tail

This way you can see the final result.

Hmm, now that I think about it, it will still ask the user for input on whether to see the level's clue if it fails, so that may not work. I wonder if there's a way to detect if the user is able to give feedback or not.

ryanb commented 14 years ago

I'm adding a -s option to skip unimportant questions this way this will be possible. See this ticket

rubywarrior -s -t 0 | tail
ryanb commented 14 years ago

adding runner class which handles command options, current -t, -d - closed by b6ea19ec467024687eacbe41297c9d0b5f4ac149 and #10