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 |