How to have several piece types in re... Log Out | Topics | Search
Moderators | Register | Edit Profile

Zillions of Games Discussion Forum » Designing Games for Zillions » How to have several piece types in relative-config? « Previous Next »

Author Message
Jonathan Welton (Jpw)
Posted on Sunday, June 08, 2003 - 11:19 am:   

Hi

I want to create a game in which the winning condition is to arrange your pieces in a line, but where the line can have more than one piece type. I'd like to do something like -

relative-config friend e friend e friend ...

Alternatively -
relative-config (or piece1 piece2) e (peice1 piece2) ...

Neither of these work. Is there some way of achieving this?

Regards
Jonathan
Ken Franklin (Kenz)
Posted on Sunday, June 08, 2003 - 7:49 pm:   

See Missing Link (v 1.31).
I had the same problem. It was solved by writing out every combination as an absolute-config instead.

(win-condition
(Self)
(or
(and
(absolute-config ... )
(absolute-config ... )
)
(and ... as needed )

); end of or
) ; end of win-condition

I listed multiple win-conditions too - there were a lot of combinations.
Ken Franklin (Kenz)
Posted on Saturday, June 14, 2003 - 11:22 am:   

Sorry Jonathan,
Also see CHAVERSE.zrf, its goal condition(s) should be more revelant and a lot easier to follow!!
sincerely,
Ken

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: