; *** Copyright 1998-2001 Zillions Development ; v.1.3.1 ; You need to purchase Zillions of Games to load this rules file ; Visit the Zillions web site at http://www.zillions-of-games.com ; *** KING'S LEAP CHESS *** VER3Z2 *** ; ; __ All original content is __ ; / o\-- --/o \ ; \ \/ copyright (c) 1997-2004 \/ / ; / \ / \ ; [====] by David Paulowich [====] (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 Pawn-add (if (in-zone? promotion-zone) (add Bishop Knight Rook 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\Chess\chess8x8.bmp") (grid (start-rectangle 5 5 53 53) (dimensions ("a/b/c/d/e/f/g/h" (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) ) (zone (name promotion-zone) (players Black) (positions a1 b1 c1 d1 e1 f1 g1 h1) ) (zone (name third-rank) (players White) (positions a3 b3 c3 d3 e3 f3 g3 h3) ) (zone (name third-rank) (players Black) (positions a6 b6 c6 d6 e6 f6 g6 h6) ) ) (game (title "King's Leap Chess") (description "Object: Checkmate the opponent's King by attacking it so that it cannot escape.\\ Moves and Rules for the standard chess pieces are mostly unchanged. Pawns promote to a bishop, knight, rook, chancellor, or queen of the same color. Castling has been replaced by the King's Leap Rule, allowing the king to make a noncapturing leap two squares orthogonally or diagonally on his first move.\\ The chancellor combines the moves of rook and knight.\\ The queen still combines the moves of rook and bishop.") (history "In Spain during the Middle Ages chess players experimented with rules giving pieces that only moved one square at a time the one-time-only option of moving two squares. Our modern castling and pawn double-step rules are descended from these experiments. Every chess variant in this program steps back in time, replacing castling with a king's leap in eight different directions.\\ In 1923 Hugo Legler created Neo-Chess by replacing the queen's rook by a chancellor (combining the powers of rook and knight) and the queen's knight by an archbishop (combining the powers of bishop and knight). In 1997 David Paulowich added just the chancellors, and then switched the queens with the remaining rooks.") (strategy "Chancellors and queens are close in value. You will find that all the basic principles of Chess still apply: maximize the activity of your pieces, gain space, and keep your King safe.") (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) (Chancellor a1) (Knight b1 g1) (Bishop c1 f1) (Rook d1) (King e1) (Queen h1) ) (Black (Pawn a7 b7 c7 d7 e7 f7 g7 h7) (Chancellor a8) (Knight b8 g8) (Bishop c8 f8) (Rook d8) (King e8) (Queen h8) ) ) (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 from its starting position. A Pawn captures by moving one square diagonally forward. If a Pawn reaches the far rank it promotes, changing into a Bishop, Knight, Rook, Chancellor, or Queen of the same color. 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\Chess\wpawn.bmp" Black "images\Chess\bpawn.bmp") (moves (Pawn-capture nw) (Pawn-capture ne) (Pawn-move) (En-Passant e) (En-Passant w) ) ) (define Knight-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 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 leaps over any pieces on the way.") (image White "images\Chess\wknight.bmp" Black "images\Chess\bknight.bmp") (moves (Knight-moves)) ) (define Bishop-moves (slide ne) (slide nw) (slide se) (slide 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\Chess\wbishop.bmp" Black "images\Chess\bbishop.bmp") (moves (Bishop-moves)) ) (define Rook-moves (slide n) (slide e) (slide s) (slide w) ) (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.") (image White "images\Chess\wrook.bmp" Black "images\Chess\brook.bmp") (moves (Rook-moves)) ) ; The Archbishop is a bonus piece, not used in the game itself. (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. Also called a `Princess`.") (image White "images\Chess\WKnightBishop.bmp" Black "images\Chess\BKnightBishop.bmp") (moves (Knight-moves) (Bishop-moves)) ) ; "The chancellor of an order of knighthood discharges notarial duties and keeps the seal." ; Encyclopedia Britannica - 1911 edition (piece (name Chancellor) (help "Chancellor combines the rook's moves with the knight's") (description "Chancellor\The Chancellor can move like a rook or leap like a knight. Also called an `Empress`.") (image White "images\Chess\WKnightRook.bmp" Black "images\Chess\BKnightRook.bmp") (moves (Knight-moves) (Rook-moves)) ) (piece (name Queen) (help "Queen: can slide in any direction") (description "Queen\A Queen moves any distance in a straight line. \It may not leap over other pieces.") (image White "images\Chess\wqueen.bmp" Black "images\Chess\bqueen.bmp") (moves (Rook-moves) (Bishop-moves)) ) (piece (name Russian-Queen) (help "Russian-Queen: can slide in any direction or leap two squares like a knight") (description "Russian-Queen\A Russian-Queen can move like a queen or leap like a knight. In fairy chess this piece is called an `Amazon`.") (image White "images\Chess\wdownqueen.bmp" Black "images\Chess\bdownqueen.bmp") (moves (Rook-moves) (Bishop-moves) (Knight-moves)) ) ; King's Leap Rule. There is no castling in this game. (define leap-east ( (verify never-moved?) (verify not-attacked?) mark e (verify not-enemy?) (verify not-attacked?) e (verify empty?) (set-attribute never-moved? false) add ) ) (define leap-northeast ( (verify never-moved?) (verify not-attacked?) mark ne (verify not-enemy?) (verify not-attacked?) ne (verify empty?) (set-attribute never-moved? false) add ) ) (define leap-north ( (verify never-moved?) (verify not-attacked?) mark n (verify not-enemy?) (verify not-attacked?) n (verify empty?) (set-attribute never-moved? false) add ) ) (define leap-northwest ( (verify never-moved?) (verify not-attacked?) mark nw (verify not-enemy?) (verify not-attacked?) nw (verify empty?) (set-attribute never-moved? false) add ) ) (define leap-west ( (verify never-moved?) (verify not-attacked?) mark w (verify not-enemy?) (verify not-attacked?) w (verify empty?) (set-attribute never-moved? false) add ) ) (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 perform a noncapturing `King's Leap` two squares orthogonally or diagonally. It is allowed to leap over a friendly piece, but not an enemy piece. Your King may not leap out of or through check, or if the King has previously moved.") (image White "images\Chess\wking.bmp" Black "images\Chess\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) (leap-east) (leap-northeast) (leap-north) (leap-northwest) (leap-west) ) ) (loss-condition (White Black) (checkmated King) ) (draw-condition (White Black) stalemated) ; Decided to drop the next line because of problems in K+Q versus K+R endgame. ; (count-condition (total-piece-count 2)) ) ; *** *** *** (variant (title "New and Old Chess") (description "New and Old Chess\\White uses the opening setup from King's Leap Chess. Black uses the opening setup from Old Russian Chess. Pawns on both sides still promote to a bishop, knight, rook, chancellor, or queen of the same color. Never to a Russian-Queen in this variant. Castling has been replaced by the King's Leap Rule, allowing the king to make a noncapturing leap two squares orthogonally or diagonally on his first move.\\You can create other chess variants by right-clicking on the board to enter positions containing different pieces, such as the Archbishop (moves like a bishop or a knight) and the Russian-Queen (moves like a queen or a knight). Right-clicking on a piece and selecting its properties yields a full description.") (history "This variant brings together evenly matched armies from two different games.") (strategy "Chancellors and queens are close in value, but the Russian-Queen is worth at least as much as a queen and a knight. You will find that all the basic principles of Chess still apply: maximize the activity of your pieces, gain space, and keep your King safe.") (board-setup (White (Pawn a2 b2 c2 d2 e2 f2 g2 h2) (Chancellor a1) (Knight b1 g1) (Bishop c1 f1) (Rook d1) (King e1) (Queen h1) ) (Black (Pawn a7 b7 c7 d7 e7 f7 g7 h7) (Rook a8 h8) (Knight b8 g8) (Bishop c8 f8) (Russian-Queen d8) (King e8) ) ) ) ; *** *** *** (variant (title "Old and New Chess") (description "Old and New Chess\\White uses the opening setup from Old Russian Chess. Black uses the opening setup from King's Leap Chess. Pawns on both sides still promote to a bishop, knight, rook, chancellor, or queen of the same color. Never to a Russian-Queen in this variant. Castling has been replaced by the King's Leap Rule, allowing the king to make a noncapturing leap two squares orthogonally or diagonally on his first move.\\You can create other chess variants by right-clicking on the board to enter positions containing different pieces, such as the Archbishop (moves like a bishop or a knight) and the Russian-Queen (moves like a queen or a knight). Right-clicking on a piece and selecting its properties yields a full description.") (history "This variant brings together evenly matched armies from two different games.") (strategy "Chancellors and queens are close in value, but the Russian-Queen is worth at least as much as a queen and a knight. You will find that all the basic principles of Chess still apply: maximize the activity of your pieces, gain space, and keep your King safe.") (board-setup (White (Pawn a2 b2 c2 d2 e2 f2 g2 h2) (Rook a1 h1) (Knight b1 g1) (Bishop c1 f1) (Russian-Queen d1) (King e1) ) (Black (Pawn a7 b7 c7 d7 e7 f7 g7 h7) (Chancellor a8) (Knight b8 g8) (Bishop c8 f8) (Rook d8) (King e8) (Queen h8) ) ) ) ; *** *** *** (variant (title "Old Russian Chess") (description "Old Russian Chess\\ Moves and Rules for the standard chess pieces are mostly unchanged. The Russian-Queen can move like a queen or a knight. Pawns promote to a bishop, knight, rook, or Russian-Queen of the same color. Castling has been replaced by the King's Leap Rule, allowing the king to make a noncapturing leap two squares orthogonally or diagonally on his first move.") (history "Many regional chess variants were played in rural Russia up to around 1900. Old Russian Chess is an modern attempt to capture some of the flavor of these games.") (strategy "The Russian-Queen is far more valuable than the other pieces in this game. Promoting a pawn to a Russian-Queen will end most games immediately. You will find that all the basic principles of Chess still apply: maximize the activity of your pieces, gain space, and keep your King safe.") (define R-Pawn-add (if (in-zone? promotion-zone) (add Bishop Knight Rook Russian-Queen) else add) ) (define R-Pawn-move ( n (verify empty?) (R-Pawn-add) (verify (in-zone? third-rank)) n (verify empty?) add ) ) (define R-Pawn-capture ( $1 (verify enemy?) (R-Pawn-add) ) ) (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 from its starting position. A Pawn captures by moving one square diagonally forward. If a Pawn reaches the far rank it promotes, changing into a Bishop, Knight, Rook, or Russian-Queen of the same color. 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\Chess\wpawn.bmp" Black "images\Chess\bpawn.bmp") (moves (R-Pawn-capture nw) (R-Pawn-capture ne) (R-Pawn-move) (En-Passant e) (En-Passant w) ) ) (board-setup (White (Pawn a2 b2 c2 d2 e2 f2 g2 h2) (Rook a1 h1) (Knight b1 g1) (Bishop c1 f1) (Russian-Queen d1) (King e1) ) (Black (Pawn a7 b7 c7 d7 e7 f7 g7 h7) (Rook a8 h8) (Knight b8 g8) (Bishop c8 f8) (Russian-Queen d8) (King e8) ) ) )