Draw-conditions don't work properl Log Out | Topics | Search
Moderators | Register | Edit Profile

Zillions of Games Discussion Forum » Designing Games for Zillions » Draw-conditions don't work properl « Previous Next »

Author Message
Mats W (Kålroten)
Posted on Friday, November 11, 2005 - 7:02 am:   

Draw-conditions don't work properly. It's a bug in Zillions interpreter, I'd say.

c7 d7 e7

If I want to create a draw-condition when White has a piece on e7 and Black has a piece on *either* c7 or d7 then this is not possible. One possibility should be to define a zone of c7 and d7 and then write:

(draw-condition (White)
(and (absolute-config White_piece e7) (absolute-config Black_piece (zone1))))


However, although the interpreter accepts this line it doesn't work properly in game-play. Another alternative is to write like the following:

(draw-condition (White)
(and (absolute-config White_piece e7) (not(absolute-config Black_piece (c7 d7)))))

However, this produces the wrong result, also.

Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: