Help: designing this random chess var... Log Out | Topics | Search
Moderators | Register | Edit Profile

Zillions of Games Discussion Forum » Designing Games for Zillions » Help: designing this random chess variant « Previous Next »

Author Message
Michael Reds (Multivac)
New member
Username: Multivac

Post Number: 1
Registered: 9-2009
Posted on Monday, September 21, 2009 - 5:07 pm:   

I would like to design and play this chess variant:

http://en.wikibooks.org/wiki/Chess/Variants/Random_Opening_Chess

I have very little program knowledge. My questions are:

How do I drop the pieces avoiding compulsorily any attack to the kings?

How do I drop the bishops compulsorily on opposite colored squares?

if someone of you would be willing to help me, thank you for the attention.
M Winther (Kalroten)
New member
Username: Kalroten

Post Number: 127
Registered: 1-2007
Posted on Wednesday, September 23, 2009 - 11:43 am:   

Michael, since Zillions is open source, the method we use here is to learn from already published programs. I have created several drop chess variants. See...
http://hem.passagen.se/melki9/newchess.htm
http://hem.passagen.se/melki9/meteoricchess.htm
http://hem.passagen.se/melki9/orphicchess.htm

The latter received a mention in Variant Chess magazine. In order to force different colour bishops you must create a "zone" with only the black sqaures or only the white squares, and check that the bishop is dropped only on one or the other.

In order to hinder checks when dropping you could perhaps do this cleverly by endowing the king with move-types k_bishop_moves, k_knight_moves, k_queen_moves, and k_rook_moves. But these should have a lower priority than the standard moves so that the king can never execute them. However, if you drop a bishop, then you can verify that this is not checking the enemy king by writing (verify not-attacked? k_bishop_moves). If you drop a knight, then you verify in this way: (verify not-attacked? k_knight_moves).

But I suggest that you begin by implementing this without the check rule first.

Mats

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: