From: Benoit Daloze Date: 2010-04-10T19:07:28+09:00 Subject: Re: Ruby-warrior : Teaching AI concepts with Ruby --00163646ba822292e80483df1429 Content-Type: text/plain; charset=ISO-8859-1 Hi, On 10 April 2010 08:38, Philip Rhoades wrote: > People, > > I tried cloning the latest git but adding > > warrior.rest! > > to player.rb and running gave: > > Welcome to Ruby Warrior > [1] p - beginner - level 1 - score 0 > [2] New Profile > Choose profile by typing the number: 1 > Starting Level 1 > - turn 1 - > -------- > |@ >| > -------- > ./rubywarrior/p-beginner/player.rb:3:in `play_turn': undefined method > `rest!' for # > (NoMethodError) > > What have I missed? > > You just can't warrior.rest! on level 1, warrior methods are added level by level. And, why would you rest when you can just go straight ahead? ;) B.D. --00163646ba822292e80483df1429--