ryanb / ruby-warrior

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

Can't Take second turn on level 6 #28

Closed Arcath closed 14 years ago

Arcath commented 14 years ago

At first I though this was caused by an error in my code but I stripped it down to walk forward on turn one then walk backward on turn two and the same error appears.

the error:

/var/lib/gems/1.8/gems/rubywarrior-0.1.1/lib/ruby_warrior/abilities/base.rb:16:in `offset': undefined method `map' for nil:NilClass (NoMethodError)
    from /var/lib/gems/1.8/gems/rubywarrior-0.1.1/lib/ruby_warrior/abilities/base.rb:20:in `space'

Ruby Version: @ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]@ Ruby Warrior Version: latest gem

not quite sure why this error appears

Arcath commented 14 years ago

Removed all logic and it worked, so it must be my player.rb