| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Invent your own chess variant

Page history last edited by Andreas Kaufmann 2 years, 2 months ago

Introduction

 

Implementation of some chess variants for Zillions-of-Games can require only writing a few lines of code. You just need to make a copy of Chess.zrf from Zillions-of-Games installation and slightly modify it. Here is a nice example I found in German magazine Computer Schach und Spiele, Idiot chess:

 

(variant (title "Idiot Chess") (players White Black ?Idiot) (turn-order White Black (?Idiot White) (?Idiot Black)))

 

This implement a chess variant, where white moves, then black moves and then "idiot" player randomly moves one white and one black piece.

It makes fun to make such changes to chess rules and try out new chess variants with Zillions-of-Games.

 

Different goal

 

The goal in standard chess is to checkmate the king of the opponent:

 

(loss-condition (White Black) (checkmated King) )

 

This goal can be easily modified to something different. After I saw the game Breakthrough by W. Troyka, I created the following chess variant, Breakthrough chess. I just replaced above line in Chess.zrf with:

 

(win-condition (White Black) (absolute-config Pawn Knight Bishop Rook Queen King (promotion-zone)))

 

I.e. instead of checkmate, the goal now is to reach "promotion zone", 8th rank for white and 1st rank for black. This game is fun to play at least for a half hour. After you are done just open Zillions Language Reference (file Langref.chm in Zillions installation) and search for word goal. Now you are ready to invent hundreds of chess variants in a few minutes. Just see examples and adapt to something interesting. For example it makes sense to try out several variations of Centric chess, like:

 

(win-condition (White Black)

(or (absolute-config Pawn Knight Bishop Rook Queen King (e4 d5)) (absolute-config Pawn Knight Bishop Rook Queen King (e5 d4)))

 

The player, who first occupies positions e4 and d5 or positions e5 and d4 at the same time, wins. Some variants will be certainly quickly played out. For example Checkmate pawn chess:

 

(loss-condition (White Black) (checkmated Pawn) )

 

My first game against Zillions finished with a disaster: 1. e4?? Nf6 2. e5 Nc6 and white e-pawn is checkmated. However, I took revenge in the second game: 1. e3! Nf6 2. Bc4 Nd5 3. Bxd5, checkmate.

 

 

Comments (0)

You don't have permission to comment on this page.