This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: GNU Robots 0.76 is ready


James F Hall writes:
 > 
 > 
 > 
 > 
 > [Klaus Schilling wrote:]
 > >> This will create two programs in the src/ directory:
 > >>
 > >>      run_robot
 > >>      curs_robot
 > >>
 > >
 > >That I've done so far.
 > >
 > [...]
 > >After starting either curs or plain bot, after loading the map,
 > >it aborts reporting that 'while' is not a bound variable. while
 > >is not part of R*RS . How in all the world is it supposed to
 > >get into robots? The problem exists with both 0.76 and 0.77
 > 
 > Then I think the problem is in test.scm (the sample robot program.)
 > This uses a "while" statement to grab all the prizes along a row
 > of prizes.  Let's ignore the problem with the unbound "while" for
 > now, and first get to a point where GNU Robots is working for you.
 > 
 > Save this as test.scm in the src/ directory:
 > 
 > ;;; grab a single prize
 > (define (grab-prize)
 >   (robot-grab)
 >   (robot-move 1)
 > )
 > 
 > (grab-prize)
 > (grab-prize)
 > 
 > 
 > 
 > 
 > This is just an excerpt of the test.scm, and should grab two prizes,
 > and move ahead two spaces.  I called "grab-prize" twice so there
 > will be enough of a delay that you can see whether or not it worked.

I've retrograded now to guile 1.2, because the latest snapshots crash 
with my guile bindings for ncurses.

Robots works now fine ... but it's still boring just to have a bot crawling
along the walls and grabbing $s until the energy runs out.

Klaus Schilling