| Author |
Message |
dhalgren (Dhalgren)
| | Posted on Sunday, February 12, 2006 - 2:56 pm: | |
I can't think of an easy way to allow leaping over kill-positions. The only thing I can think of is making them dummy pieces instead and changing movement code. Is there an easier way? |
dhalgren (Dhalgren)
| | Posted on Sunday, February 12, 2006 - 2:58 pm: | |
Oh, on the particular (cross-shaped) board I'm using, redundantly coding moves works too, but then Zillions over-values the piece. |
Sean Duggan (Dream)
| | Posted on Sunday, February 12, 2006 - 4:16 pm: | |
Couldn't you create specific links between the positions? What kind of leaps are these? |
Ingrid Lael (Ingridlael)
| | Posted on Sunday, February 12, 2006 - 7:47 pm: | |
I agree with Dream on this (in my VERY limited experience). I guess you could create specific directions for each of the leaps. For instance, take chess knight moevs, you could declare links in the nne, ene, ese, sse, ssw, wsw, wnw and nnw, and make the leaps a simple "step" in the correct direction. Another added benefit is that once you declare them in the grid statement you can safely kill as many positions as you want, and you don't have to define any of them "by hand" (except maybe if you're working on a cylindrical board or anything like it). Hope that helps. Cheers... ...Ingrid |
Ingrid Lael (Ingridlael)
| | Posted on Sunday, February 12, 2006 - 9:48 pm: | |
PS: this method also makes coding MUCH more tidy and simple IMHO |
|