| Author |
Message |
zzoo (Zzoo)
New member Username: Zzoo
Post Number: 2 Registered: 11-2007
| | Posted on Monday, November 26, 2007 - 11:15 am: | |
Could you please advise me how I could accomplish those with Zillions. Regarding a chess variant, I'd like to have a piece that 1. can NOT be captured by the King at all. 2. another piece that normally moves 2 squares each side, but if there's a King at 3 squares away, then it can capture the King. In other words, exceptionally, that piece can capture the King even though he's 3 squares away. Thank you very much for your help |
Sean Duggan (Dream)
New member Username: Dream
Post Number: 73 Registered: 9-2000
| | Posted on Monday, November 26, 2007 - 11:34 am: | |
The first would actually be handled in the King's movement. The simplest way to do this is to make an additional check at your add. For example: (define King-move ( $1 (verify empty?) (King-add) ) ) (define King-capture ( $1 (verify not-friend?) (verify (not-piece? Golem)) add ) ) The answer to 2 is similar. (define Golem-move ( $1 (verify empty?) $1 (verify empty?) $1 (verify not-friend?) (verify (piece? King)) add ) ) Both of my examples are pretty much lifted from my Duggan's Fantasy Chess available at http://www.chessvariants.org/index/zillions.php?itemid=zDuggansFantasyC I have a piece, the Golem, which can only be captured by specific pieces and so happens to move two spaces in one situation, or three in another. |
zzoo (Zzoo)
New member Username: Zzoo
Post Number: 3 Registered: 11-2007
| | Posted on Tuesday, November 27, 2007 - 1:29 pm: | |
Thank you very much. Those codes are very helpful. It works like charm. |
|