Awarding a win for stalemate, draw fo... Log Out | Topics | Search
Moderators | Register | Edit Profile

Zillions of Games Discussion Forum » Designing Games for Zillions » Awarding a win for stalemate, draw for mutual stalemate « Previous Next »

Author Message
Tony Mokonen (Tmokonen)
New member
Username: Tmokonen

Post Number: 1
Registered: 1-2008
Posted on Sunday, January 27, 2008 - 4:19 pm:   

Hello all. I am designing a stalemate/block style game. I would like my game to award a win if one side stalemates the other, but only a draw if a move results in a mutual stalemate. How would I go about doing this?

Tony
M Winther (Kalroten)
New member
Username: Kalroten

Post Number: 53
Registered: 1-2007
Posted on Sunday, February 03, 2008 - 1:21 am:   

This is one way of doing it. Create external positions on which you place invisible dummy pieces, e.g. a piece named "mutual-stalemate" on x1. Then create a move-type e.g. "external-capture" with lower move-priority. So when a piece cannot make a move, this "external-capture" move will be executed instead, in which the external "mutual-stalemate" is captured. If this occurs twice in a row then both x1 and y1 (e.g.) will be empty and a draw condition is fulfilled: (draw-condition (total-piece-count 0 mutual-stalemate))

However, when the second party is not stalemated then the normal priority move must check whether x1 (or y1, respectively) is empty. If so, then a dummy piece e.g "party-stalemate" is captured on r1 or s1. You must check which one is "enemy?" before capturing it. Loss condition is set to (loss-condition (White Black) (captured party-stalemate) ). So before executing a normal move, the external square x1 or y1 must always be checked.

Mats Winther

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: