ruby-warrior icon indicating copy to clipboard operation
ruby-warrior copied to clipboard

Game written in Ruby for learning Ruby and artificial intelligence.

Results 38 ruby-warrior issues
Sort by recently updated
recently updated
newest added

I've added newlines to major outputs (new turns and level completion). I would also like to add color so that it's easier to distinguish between different kinds of output.

I needed Level#play to return a pass/fail boolean for my particular case, it probably isn't strictly necessary for other use cases but I thought it made sense that it should.

One interesting tower idea is that of a labyrinth. Currently the levels are only rectangular in shape and the walls are only on the outside. What if inner walls existed?...

idea

bin/rubywarrior should be rubywarrior.rb The program can't create a bin/rubywarrior/ directory unless it is changed.

There currently are none and it makes me sad :(

It would make more sense to return and print 0 health power rather than a negative number. See the image below. ![image](https://f.cloud.github.com/assets/4031210/798839/1d0bce64-ed69-11e2-9b47-10ec4aeffca3.png)

In level 7, the following code will cause the warrior to seemingly jump to the other end of the level, while still taking damage and attacking as if it's still...

For example, if I run `rubywarrior` and I'm prompted to choose a profile, if I enter `q` rather than `1` or `2`, I'm not told that `q` is invalid input....

## how can i run the specs? 1. it run OK when i run: $ spec ./spec/*_/__spec.rb 2. it fails running: $ rake spec internal:lib/rubygems/custom_require:29:in `require': no such file to...