; *** Capablanca's Chess ; *** Copyright 1998-2000 Zillions Development ; v.1.2 ; You need to purchase Zillions of Games to load this rules file ; Visit the Zillions web site at http://www.zillions-of-games.com (define leap1 ($1 (verify not-friend?) add) ) (define leap2 ($1 $2 (verify not-friend?) add) ) (define king-shift ($1 (verify not-friend?) (set-attribute never-moved? false) add) ) (define slide ($1 (while empty? add $1) (verify not-friend?) add)) (define rook-slide ( $1 (while empty? (set-attribute never-moved? false) add $1) (verify not-friend?) (set-attribute never-moved? false) add )) (define O-O ( (verify never-moved?) w ; (verify empty?) w ; (verify empty?) w ; (verify empty?) cascade w ; (verify (and friend? (piece? Rook) never-moved?) ) from back ; ; Save expensive not-attacked's for last (verify not-attacked?) w ; (verify not-attacked?) w ; (verify not-attacked?) to (set-attribute never-moved? false) w ; (set-attribute never-moved? false) add ) ) (define O-O-O ( (verify never-moved?) e ; (verify empty?) e ; (verify empty?) e ; (verify empty?) cascade e ; (verify empty?) e ; (verify (and friend? (piece? Rook) never-moved?) ) from back ; ; Save expensive not-attacked?s for last (verify not-attacked?) e ; (verify not-attacked?) e ; (verify not-attacked?) to (set-attribute never-moved? false) e ; (set-attribute never-moved? false) add ) ) (define Pawn-add (if (in-zone? promotion-zone) (add Knight Bishop Rook Archbishop Chancellor Queen) else add) ) (define Pawn-move ( n (verify empty?) (Pawn-add) (verify (in-zone? third-rank)) n (verify empty?) add ) ) (define Pawn-capture ( $1 (verify enemy?) (Pawn-add) ) ) (define En-Passant ( $1 (verify enemy?) (verify last-to?) (verify (piece? Pawn)) capture n to n (verify last-from?) add ) ) (define Board-Definitions (image "images\Alfaerie\Chess10x8.bmp") (grid (start-rectangle 5 6 53 53) (dimensions ("a/b/c/d/e/f/g/h/i/j" (49 0)) ; files ("8/7/6/5/4/3/2/1" (0 49)) ; ranks ) (directions (n 0 -1) (e 1 0) (s 0 1) (w -1 0) (ne 1 -1) (nw -1 -1) (se 1 1) (sw -1 1) ) ) (symmetry Black (n s)(s n) (nw sw)(sw nw) (ne se)(se ne)) (zone (name promotion-zone) (players White) (positions a8 b8 c8 d8 e8 f8 g8 h8 i8 j8) ) (zone (name promotion-zone) (players Black) (positions a1 b1 c1 d1 e1 f1 g1 h1 i1 j1) ) (zone (name third-rank) (players White) (positions a3 b3 c3 d3 e3 f3 g3 h3 i3 j3) ) (zone (name third-rank) (players Black) (positions a6 b6 c6 d6 e6 f6 g6 h6 i6 j6) ) ) (game (title "Capablanca's Chess (modified)") (description "Object: Checkmate the opponent's King by attacking it so it cannot escape.\\ Moves and rules\ Most rules are as in usual chess. We mention the differences only: \\ The chancellor has the combined moves of rook and knight, i.e., each move the chancellor may move either as a rook, or as a knight. (This is similar to the queen, who has the combined moves of rook and bishop.) The archbishop has the combined moves of bishop and knight.\ When a player castles, the king always moves three squares towards the rook.\ Pawns can promote to queen, archbishop, chancellor, rook, knight, or bishop, to the owning players choice.") (history "The great chess master and world champion Jose Raul Capablanca (1888-1942) proposed this chess variant, after he had gained the world champion title from Lasker. A description of this game can be found in the books of Gollon and Pritchard.") (strategy "In the opening, try to develop your pieces more than your pawns. Always protect your King. Look for ways to exchange lower valued pieces for larger valued ones. Generally, if a Pawn is worth 1 point, then a Bishop or Knight is worth 3, a Rook is worth 5 and a Queen worth 9 points. The Archbishop and Chancellor are worth something between a Rook and a Queen, with the Chancellor worth almost as much as a Queen. WARNING: the Pawns at i2 and i9 are undefended!") (win-sound "Audio\Orchestra_CF.wav") (loss-sound "Audio\Orchestra_FC.wav") (click-sound "Audio\Pickup.wav") (release-sound "Audio\WoodThunk.wav") (players White Black) (turn-order White Black) (pass-turn false) (board (Board-Definitions)) (board-setup (White (Pawn a2 b2 c2 d2 e2 f2 g2 h2 i2 j2) (Knight b1 i1) (Bishop d1 g1) (Rook a1 j1) (Queen h1) (King e1) (Chancellor f1) (Archbishop c1) ) (Black (Pawn a7 b7 c7 d7 e7 f7 g7 h7 i7 j7) (Knight b8 i8) (Bishop d8 g8) (Rook a8 j8) (Queen h8) (King e8) (Chancellor f8) (Archbishop c8) ) ) (piece (name Pawn) (help "Pawn: moves forward, captures diagonally, can promote on 8th row") (description "Pawn\A Pawn can move straight ahead one square, or two squares from its starting position. A Pawn captures by moving one square ahead and diagonally. If a Pawn reaches the far rank it promotes, changing into a Knight, Bishop, Rook, Archbishop, Chancellor or Queen. On rare occasions Pawns can also execute a move called `En Passant`, or `in passing`. This allows a Pawn to take an enemy Pawn that has just moved two squares.") (image White "images\alfaerie\wpawn.bmp" Black "images\alfaerie\bpawn.bmp") (moves (Pawn-capture nw) (Pawn-capture ne) (Pawn-move) (En-Passant e) (En-Passant w) ) ) (piece (name Knight) (help "Knight: moves like an `L`, 2 squares one way and one the other") (description "Knight\A Knight moves like an `L`, two squares vertically plus one horizontally, or two squares horizontally plus one vertically. It hops over any pieces on the way.") (image White "images\alfaerie\wknight.bmp" Black "images\alfaerie\bknight.bmp") (moves (leap2 n ne) (leap2 n nw) (leap2 s se) (leap2 s sw) (leap2 e ne) (leap2 e se) (leap2 w nw) (leap2 w sw) ) ) (piece (name Bishop) (help "Bishop: slides diagonally any number of squares") (description "Bishop\A Bishop moves any number of squares on a diagonal. It may not leap over other pieces.") (image White "images\alfaerie\wbishop.bmp" Black "images\alfaerie\bbishop.bmp") (moves (slide ne) (slide nw) (slide se) (slide sw) ) ) (piece (name Rook) (help "Rook: slides any number of squares along the row or column.") (description "Rook\A Rook moves any number of squares orthogonally on a rank or a file. It may not leap over other pieces.") (image White "images\alfaerie\wrook.bmp" Black "images\alfaerie\brook.bmp") (attribute never-moved? true) (moves (rook-slide n) (rook-slide e) (rook-slide s) (rook-slide w) ) ) (piece (name Queen) (help "Queen: can slide any number of squares in any direction") (description "Queen\A Queen moves any number of squares in a straight line. It may not leap over other pieces.") (image White "images\alfaerie\wqueen.bmp" Black "images\alfaerie\bqueen.bmp") (moves (slide n) (slide e) (slide s) (slide w) (slide ne) (slide nw) (slide se) (slide sw) ) ) (piece (name King) (help "King: steps 1 square in any direction to a safe square") (description "King\A King can move to any adjacent square, but never to a square where it can be captured. It may also `castle` with the Rook if neither the Rook nor King has moved yet and there is nothing in between them. In castling the King moves three squares nearer the Rook and the Rook leaps to the far side of the King. You may not castle out of or through check, or if the King or Rook involved has previously moved.") (image White "images\alfaerie\wking.bmp" Black "images\alfaerie\bking.bmp") (attribute never-moved? true) (moves (king-shift n) (king-shift e) (king-shift s) (king-shift w) (king-shift ne) (king-shift nw) (king-shift se) (king-shift sw) (O-O) (O-O-O) ) ) (piece (name Chancellor) (help "Chancellor: combines rook's moves with knight's") (description "Chancellor\The Chancellor combines the moves of the rook and knight in standard chess.") (image White "images\Alfaerie\wchancellor.bmp" Black "images\Alfaerie\bchancellor.bmp") (moves (slide n) (slide e) (slide s) (slide w) (leap2 n ne) (leap2 n nw) (leap2 s se) (leap2 s sw) (leap2 e ne) (leap2 e se) (leap2 w nw) (leap2 w sw) ) ) (piece (name Archbishop) (help "Archbishop: combines the bishop's moves with the knight's") (description "Archbishop\The Archbishop can move like a bishop or a knight from standard chess.") (image White "images\Alfaerie\wcardinal.bmp" Black "images\Alfaerie\bcardinal.bmp") (moves (slide ne) (slide nw) (slide se) (slide sw) (leap2 n ne) (leap2 n nw) (leap2 s se) (leap2 s sw) (leap2 e ne) (leap2 e se) (leap2 w nw) (leap2 w sw) ) ) (define leap2ride ($1 $2 (while empty? add $1 $2 ) (verify not-friend?) add) ) (piece (name Unicorn) (help "Unicorn: moves like a Bishop, or repeatedly like a Knight in same direction") (description "Unicorn\Combines the movement of a Bishop and a Nightrider. It has about the same value as the Queen and was first used in Unicorn Chess in 1999.") (image White "images\alfaerie\wcardinalrider.bmp" Black "images\alfaerie\bcardinalrider.bmp") (moves (slide ne) (slide nw) (slide se) (slide sw) (leap2ride n ne) (leap2ride n nw) (leap2ride s se) (leap2ride s sw) (leap2ride e ne) (leap2ride e se) (leap2ride w nw) (leap2ride w sw) ) ) (loss-condition (White Black) (checkmated King) ) (draw-condition (White Black) stalemated) (count-condition (total-piece-count 2)) ) ; * * * * * (variant (title "10x8 Chess setup 1") (description "Object: Checkmate the opponent's King by attacking it so it cannot escape.\\ Moves and rules\ Most rules are as in usual chess. We mention the differences only: \\ The chancellor has the combined moves of rook and knight, i.e., each move the chancellor may move either as a rook, or as a knight. (This is similar to the queen, who has the combined moves of rook and bishop.) The archbishop has the combined moves of bishop and knight.\ When a player castles, the king always moves three squares towards the rook.\ Pawns can promote to queen, archbishop, chancellor, rook, knight, or bishop, to the owning players choice.") (strategy "In the opening, try to develop your pieces more than your pawns. Always protect your King. Look for ways to exchange lower valued pieces for larger valued ones. Generally, if a Pawn is worth 1 point, then a Bishop or Knight is worth 3, a Rook is worth 5 and a Queen worth 9 points. The Archbishop and Chancellor are worth something between a Rook and a Queen, with the Chancellor worth almost as much as a Queen.") (board-setup (White (Pawn a2 b2 c2 d2 e2 f2 g2 h2 i2 j2) (Knight b1 i1) (Bishop c1 h1) (Rook a1 j1) (Queen d1) (King e1) (Chancellor f1) (Archbishop g1) ) (Black (Pawn a7 b7 c7 d7 e7 f7 g7 h7 i7 j7) (Knight b8 i8) (Bishop c8 h8) (Rook a8 j8) (Queen d8) (King e8) (Chancellor f8) (Archbishop g8) ) ) ) ; (variant (title "10x8 Chess setup 2") (description "Object: Checkmate the opponent's King by attacking it so it cannot escape.\\ Moves and rules\ Most rules are as in usual chess. We mention the differences only: \\ The chancellor has the combined moves of rook and knight, i.e., each move the chancellor may move either as a rook, or as a knight. (This is similar to the queen, who has the combined moves of rook and bishop.) The archbishop has the combined moves of bishop and knight.\ When a player castles, the king always moves three squares towards the rook.\ Pawns can promote to queen, archbishop, chancellor, rook, knight, or bishop, to the owning players choice.") (strategy "In the opening, try to develop your pieces more than your pawns. Always protect your King. Look for ways to exchange lower valued pieces for larger valued ones. Generally, if a Pawn is worth 1 point, then a Bishop or Knight is worth 3, a Rook is worth 5 and a Queen worth 9 points. The Archbishop and Chancellor are worth something between a Rook and a Queen, with the Chancellor worth almost as much as a Queen.") (board-setup (White (Pawn a2 b2 c2 d2 e2 f2 g2 h2 i2 j2) (Knight b1 i1) (Bishop c1 h1) (Rook a1 j1) (Queen d1) (King e1) (Chancellor g1) (Archbishop f1) ) (Black (Pawn a7 b7 c7 d7 e7 f7 g7 h7 i7 j7) (Knight b8 i8) (Bishop c8 h8) (Rook a8 j8) (Queen d8) (King e8) (Chancellor g8) (Archbishop f8) ) ) ) (variant (title "10x8 Chess setup 3") (description "Object: Checkmate the opponent's King by attacking it so it cannot escape.\\ Moves and rules\ Most rules are as in usual chess. We mention the differences only: \\ The chancellor has the combined moves of rook and knight, i.e., each move the chancellor may move either as a rook, or as a knight. (This is similar to the queen, who has the combined moves of rook and bishop.) The archbishop has the combined moves of bishop and knight.\ When a player castles, the king always moves three squares towards the rook.\ Pawns can promote to queen, archbishop, chancellor, rook, knight, or bishop, to the owning players choice.") (strategy "In the opening, try to develop your pieces more than your pawns. Always protect your King. Look for ways to exchange lower valued pieces for larger valued ones. Generally, if a Pawn is worth 1 point, then a Bishop or Knight is worth 3, a Rook is worth 5 and a Queen worth 9 points. The Archbishop and Chancellor are worth something between a Rook and a Queen, with the Chancellor worth almost as much as a Queen.") (board-setup (White (Pawn a2 b2 c2 d2 e2 f2 g2 h2 i2 j2) (Knight c1 h1) (Bishop d1 g1) (Rook a1 j1) (Queen b1) (King e1) (Chancellor i1) (Archbishop f1) ) (Black (Pawn a7 b7 c7 d7 e7 f7 g7 h7 i7 j7) (Knight c8 h8) (Bishop d8 g8) (Rook a8 j8) (Queen b8) (King e8) (Chancellor i8) (Archbishop f8) ) ) ) (variant (title "10x8 Chess setup 4") (description "Object: Checkmate the opponent's King by attacking it so it cannot escape.\\ Moves and rules\ Most rules are as in usual chess. We mention the differences only: \\ The chancellor has the combined moves of rook and knight, i.e., each move the chancellor may move either as a rook, or as a knight. (This is similar to the queen, who has the combined moves of rook and bishop.) The archbishop has the combined moves of bishop and knight.\ When a player castles, the king always moves three squares towards the rook.\ Pawns can promote to queen, archbishop, chancellor, rook, knight, or bishop, to the owning players choice.") (strategy "In the opening, try to develop your pieces more than your pawns. Always protect your King. Look for ways to exchange lower valued pieces for larger valued ones. Generally, if a Pawn is worth 1 point, then a Bishop or Knight is worth 3, a Rook is worth 5 and a Queen worth 9 points. The Archbishop and Chancellor are worth something between a Rook and a Queen, with the Chancellor worth almost as much as a Queen.") (board-setup (White (Pawn a2 b2 c2 d2 e2 f2 g2 h2 i2 j2) (Knight c1 h1) (Bishop d1 g1) (Rook a1 j1) (Queen i1) (King e1) (Chancellor b1) (Archbishop f1) ) (Black (Pawn a7 b7 c7 d7 e7 f7 g7 h7 i7 j7) (Knight c8 h8) (Bishop d8 g8) (Rook a8 j8) (Queen i8) (King e8) (Chancellor b8) (Archbishop f8) ) ) ) ; * * * * * (variant (title "Unicorn 80") (description "Object: Checkmate the opponent's King by attacking it so it cannot escape.\\ Moves and rules\ Most rules are as in usual chess. We mention the differences only: \\ The chancellor has the combined moves of rook and knight, i.e., each move the chancellor may move either as a rook, or as a knight. (This is similar to the queen, who has the combined moves of rook and bishop.) The unicorn has the combined moves of bishop and a nightrider.\ When a player castles, the king moves the usual two squares towards the rook. The way the castling rules in this Zillions program are written requires the two kings to be called WKing and BKing.\ Pawns can promote to queen, unicorn, or chancellor only in this variant.") (history "Invented by David Paulowich in 2001, this variant is a smaller version of Unicorn Great Chess, which has 44 pieces on 100 squares.") (strategy "Chancellors and Unicorns have about the same value as Queens. Here is a short game: 1. Pawn d2-d3 Unicorn f8-h4 2. Unicorn e1-d2 Unicorn h4xd2 checkmate.") (board-setup (White (Pawn a2 b2 c2 d2 e2 f2 g2 h2 i2 j2) (Chancellor a1) (Rook b1 i1) (Knight c1 h1) (Bishop d1 g1) (Unicorn e1) (WKing f1) (Queen j1) ) (Black (Pawn a7 b7 c7 d7 e7 f7 g7 h7 i7 j7) (Queen a8) (Rook b8 i8) (Knight c8 h8) (Bishop d8 g8) (BKing e8) (Unicorn f8) (Chancellor j8) ) ) ; White Castling Rules (define W-W ( (verify never-moved?) mark e (verify empty?) e (verify empty?) cascade e (verify (and friend? (piece? Rook) never-moved?) ) from back ; K1 (verify not-attacked?) e (verify not-attacked?) to (set-attribute never-moved? false) e (set-attribute never-moved? false) add ) ) (define W-W-W ( (verify never-moved?) mark w (verify empty?) w (verify empty?) cascade w (verify empty?) w (verify (and friend? (piece? Rook) never-moved?) ) from back ; K1 (verify not-attacked?) w (verify not-attacked?) to (set-attribute never-moved? false) w (set-attribute never-moved? false) add ) ) (piece (name WKing) (help "King: steps 1 square in any direction to a safe square") (description "King\The White King can move to any adjacent square, but never to a square where it can be captured. It may also `castle` with the Rook if neither the Rook nor King has moved yet and there is nothing in between them. In castling the King moves the usual two squares nearer the Rook and the Rook leaps to the far side of the King. You may not castle out of or through check, or if the King or Rook involved has previously moved.") (image White "images\alfaerie\wking.bmp") (attribute never-moved? true) (moves (king-shift n) (king-shift e) (king-shift s) (king-shift w) (king-shift ne) (king-shift nw) (king-shift se) (king-shift sw) (W-W) (W-W-W) ) ) ; Black Castling Rules (define B-B ( (verify never-moved?) mark w (verify empty?) w (verify empty?) cascade w (verify (and friend? (piece? Rook) never-moved?) ) from back ; K1 (verify not-attacked?) w (verify not-attacked?) to (set-attribute never-moved? false) w (set-attribute never-moved? false) add ) ) (define B-B-B ( (verify never-moved?) mark e (verify empty?) e (verify empty?) cascade e (verify empty?) e (verify (and friend? (piece? Rook) never-moved?) ) from back ; K1 (verify not-attacked?) e (verify not-attacked?) to (set-attribute never-moved? false) e (set-attribute never-moved? false) add ) ) (piece (name BKing) (help "King: steps 1 square in any direction to a safe square") (description "King\The Black King can move to any adjacent square, but never to a square where it can be captured. It may also `castle` with the Rook if neither the Rook nor King has moved yet and there is nothing in between them. In castling the King moves the usual two squares nearer the Rook and the Rook leaps to the far side of the King. You may not castle out of or through check, or if the King or Rook involved has previously moved.") (image Black "images\alfaerie\bking.bmp") (attribute never-moved? true) (moves (king-shift n) (king-shift e) (king-shift s) (king-shift w) (king-shift ne) (king-shift nw) (king-shift se) (king-shift sw) (B-B) (B-B-B) ) ) ; Unicorn 80 Pawn Promotion Rules (piece (name Pawn) (help "Pawn: moves forward, captures diagonally, can promote on 8th row") (description "Pawn\A Pawn can move straight ahead one square, or two squares from its starting position. A Pawn captures by moving one square ahead and diagonally. If a Pawn reaches the far rank it promotes, changing into a Chancellor, Unicorn, or Queen. On rare occasions Pawns can also execute a move called `En Passant`, or `in passing`. This allows a Pawn to take an enemy Pawn that has just moved two squares.") (image White "images\alfaerie\wpawn.bmp" Black "images\alfaerie\bpawn.bmp") (moves (Pawn-captureU nw) (Pawn-captureU ne) (Pawn-moveU) (En-Passant e) (En-Passant w) ) ) (define Pawn-addU (if (in-zone? promotion-zone) (add Chancellor Queen Unicorn) else add) ) (define Pawn-moveU ( n (verify empty?) (Pawn-addU) (verify (in-zone? third-rank)) n (verify empty?) add ) ) (define Pawn-captureU ( $1 (verify enemy?) (Pawn-addU) ) ) (loss-condition (White) (checkmated WKing) ) (loss-condition (Black) (checkmated BKing) ) (draw-condition (White Black) stalemated) (count-condition (total-piece-count 2)) ) (variant (title "10x8 Chess setup 3 -- Doublemove") (description "Object: Capture the opponent's King.\\ Moves and rules\ Most rules are as in usual chess. We mention the differences only: \\ The chancellor has the combined moves of rook and knight, i.e., each move the chancellor may move either as a rook, or as a knight. (This is similar to the queen, who has the combined moves of rook and bishop.) The archbishop has the combined moves of bishop and knight.\ When a player castles, the king always moves three squares towards the rook.\ Pawns can promote to queen, archbishop, chancellor, rook, knight, or bishop, to the owning players choice.") (strategy "In the opening, try to develop your pieces more than your pawns. Always protect your King. Look for ways to exchange lower valued pieces for larger valued ones. Generally, if a Pawn is worth 1 point, then a Bishop or Knight is worth 3, a Rook is worth 5 and a Queen worth 9 points. The Archbishop and Chancellor are worth something between a Rook and a Queen, with the Chancellor worth almost as much as a Queen.") (board-setup (White (Pawn a2 b2 c2 d2 e2 f2 g2 h2 i2 j2) (Knight c1 h1) (Bishop d1 g1) (Rook a1 j1) (Queen b1) (King e1) (Chancellor i1) (Archbishop f1) ) (Black (Pawn a7 b7 c7 d7 e7 f7 g7 h7 i7 j7) (Knight c8 h8) (Bishop d8 g8) (Rook a8 j8) (Queen b8) (King e8) (Chancellor i8) (Archbishop f8) ) ) (turn-order White Black Black White) (loss-condition (White Black) (captured King)) )