-
Notifications
You must be signed in to change notification settings - Fork 837
Home
curi edited this page Sep 12, 2010
·
11 revisions
Hi, I beat it (what’s out so far is 7 levels of beginner and 6 of intermediate). Here is my code at the end of intermediate if anyone wants it. I like my short play_turn method.
class Player
attr_accessor :warrior, :last_health, :ticks, :heading, :last_heading_change, :fighting, :retreated, :wants_to_retreat
- if warrior.feel(self.heading).wall?
- self.change_heading
- end
false
end
end