How to set Win-Condition for 3 player... Log Out | Topics | Search
Moderators | Register | Edit Profile

Zillions of Games Discussion Forum » Designing Games for Zillions » How to set Win-Condition for 3 player game? « Previous Next »

Author Message
J Bell (Strava)
New member
Username: Strava

Post Number: 1
Registered: 12-2012
Posted on Thursday, December 27, 2012 - 1:01 pm:   

I am working on a 3 player version of chess on a hex board.

The King is captured, not checkmated.

Win condition should be:
Player1 wins if both Player2 & Player3 Kings are captured ( Player1 does not have to be the one that captured the Kings)

After a Player's king is captured his other pieces become immobile.

I have studied the LangRef and looked at lots of .ZRFs but do not see how to do this.

I think I would need to do the following:

Define each player's King as a unique piece i.e. King1,King2,King3

Then I could set & check an attribute of the Kings.

But I would need to set this when the King is captured and I don't see how to do that.

I could also use this attribute to force a player to pass, but I don't see how to do that either.

Any help would be appreciated :-)

I am an old hand at programming but quite new to ZoG.

I am having a bit of trouble getting the hang of the ZoG syntax. So much is implied!
Malcolm James Webb (Mjw)
New member
Username: Mjw

Post Number: 6
Registered: 5-2008
Posted on Saturday, December 29, 2012 - 3:59 am:   

The simplest solution would be:
(win-condition (total-piece-count 1 King))
with each players King defined the same; no need for King1, King2 etc. Then when the winning player takes the second-last player's king, the game is over and the last-moving player wins.
J Bell (Strava)
New member
Username: Strava

Post Number: 2
Registered: 12-2012
Posted on Sunday, December 30, 2012 - 10:53 am:   

OK. I got the win condition & passing of moves to work. Would anyone be interested in giving it a quick test?

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: