| Author |
Message |
Richard Hutnik (Richardhutnik)
| | Posted on Saturday, January 25, 2003 - 11:29 am: | |
I am working on a Blue and Gray variant where the captain piece is allowed to move more than one space. Blue and Gray can be found at: http://zillionsofgames.com/games/blue_n_gray.html The only thing is that I am not sure how to code it so that a piece could move along the twisting path more than one space during the turn. Any help here would be appreciated... - Richard Hutnik (email: richardhutnik@hotmail.com) |
Richard Hutnik (Richardhutnik)
| | Posted on Saturday, January 25, 2003 - 12:11 pm: | |
Here is another problem I have run into.. I have this for the moving along the path: (define captain-slide ($1 (while empty? add ))) The $1 represents the links for the path. Unfortunately, I am getting a "Too many moves generated" error. I want to have it that if the player moves the captain piece, it will keep moving until it either gets to end space or right before it hits an space that is occupied. I would like to have the movement more controlled than that, but I will settle on that. - Richard Hutnik |
Richard Hutnik (Richardhutnik)
| | Posted on Saturday, January 25, 2003 - 12:35 pm: | |
And to conclude this.. Here is the solution I had: (define captain-slide ($1 (verify empty?) add-partial) ) Add partial fixed it, and no while. |
Karl Scherer (Karl)
| | Posted on Saturday, February 22, 2003 - 11:21 pm: | |
($1 (while empty? $1 add) is probably what you wanted in your second email letter. Your code (while empty? add) does not make any move forward and hence creates "add"s forever. |