[ List Latest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]
Comments/Ratings for a Single Item
If you have set (loss-condition (White Black) (checkmated King) )
then it should work. However, the king can still be capturable if a piece can
make, for instance, two moves in a row. Then a checkmate condition cannot
be calculated.
/Mats
then it should work. However, the king can still be capturable if a piece can
make, for instance, two moves in a row. Then a checkmate condition cannot
be calculated.
/Mats
Thank you, gentlemen, for your help. I have completed the code, except for one minor detail. I have poured over this for days and can't figure this out and was wondering if someone could give me a hand. I would imagine it is a simple fix. I have the win condition set to checkmate, but the game still has the king capturable. Would anyone be willing to review my code and let me know what I am doing wrong? I am still learning, but I am catching on fast, I think. Thanks! -Nick
Jenns Markmann wrote a tutorial on the ZRF language, still available through archive.org: http://web.archive.org/web/20011218043610/http://cruise.de/jens.markmann/zrf.html
Thanks, again, Mats! I had no idea that that file was there. It should help me quite a bit, now. The turn order is now satisfactory, though. Thanks :)
If you look in Help/Rules File Language Reference you can see the
description of the 'turn-order' syntax:
(«player» «player») First player specified moves second player’s pieces.
(«player» «player» «move-type») First player makes this type of move
with second player’s pieces.
You can also define 'neutral' pieces. But I strongly advice you to begin
implementing a simple variant. Also, begin by reading through the
Language Reference.
/Mats
description of the 'turn-order' syntax:
(«player» «player») First player specified moves second player’s pieces.
(«player» «player» «move-type») First player makes this type of move
with second player’s pieces.
You can also define 'neutral' pieces. But I strongly advice you to begin
implementing a simple variant. Also, begin by reading through the
Language Reference.
/Mats
Thank you guys. I have been following both of your advice. However, I am a little stuck. Is it possible to modify the turn order for for a multi move turn? It will start out with white making a move with black's pieces. Black will then make a move with white's then one with their's Play will continue on in this format: Move friendly piece, move enemy piece, Move friendly piece. I am not exactly sure if it is supported, nor if you can even move enemy pieces. Could one of you spare me the time? Thanks!
You can find much information in the message archive on the Zillions discussion forum. You can also ask questions about programming there. http://zillionsofgames.com/cgi-bin/discus/discus.cgi There is also a Yahoo discussion group about the free Axiom add-on for Zillions: http://games.groups.yahoo.com/group/axiom-system/ /Mats
The way I learned was by looking at ZRFs. You can look up code in the Help file. Except maybe if you have Windows Vista I think, which has Help removed. In that case I don't know where you can find a reference.
I just got ZoG and I have been googling for a good document to teach me how to program games for it, however, I am a horrible googler and have not been able to find the 'ZRF Bible' (for lack of better terms. Can anyone provide me with a link for a site/document that has good info? Thank you. -Nick
10 comments displayed
Permalink to the exact comments currently displayed.