Check out Atomic Chess, our featured variant for November, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Comments/Ratings for a Single Item

Earlier Reverse Order Later
[Subject Thread] [Add Response]
Nicholas Wolff wrote on Mon, Dec 21, 2009 07:35 AM UTC:
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

John Smith wrote on Mon, Dec 21, 2009 08:18 AM UTC:
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.

M Winther wrote on Mon, Dec 21, 2009 11:18 AM UTC:
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

Nicholas Wolff wrote on Mon, Dec 21, 2009 02:15 PM UTC:
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!

M Winther wrote on Mon, Dec 21, 2009 03:56 PM UTC:
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

Nicholas Wolff wrote on Mon, Dec 21, 2009 10:59 PM UTC:
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 :)

🕸Fergus Duniho wrote on Tue, Dec 22, 2009 01:59 AM UTC:
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

Nicholas Wolff wrote on Sun, Dec 27, 2009 12:59 AM UTC:
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

M Winther wrote on Sun, Dec 27, 2009 06:49 AM UTC:
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

Nicholas Wolff wrote on Sun, Dec 27, 2009 06:55 AM UTC:
Hmmm... Ok, that is what I have in there.  The pieces don't make two moves
in a row, but a player will move three pieces in a turn in the order
'self/opponent/self'.  In this case, you are saying that Zillions does
not recognize it as check if in the middle of a move?  Thanks, Mats!

10 comments displayed

Earlier Reverse Order Later

Permalink to the exact comments currently displayed.