6.170 Laboratory in Software Engineering
Fall 2003
Final Project: Antichess
Due: See Schedule

Handout F4

Quick links:

Contents:


Introduction

Your final project is to design, document, build, and test a program that plays Antichess.

Antichess Overview

Antichess is a variant of chess in which the goal is to either lose all of your pieces (except your king) or force your opponent to checkmate you.

Antichess Rules

The Chessboard

Antichess is played between two opponents by moving pieces on a square board. The board is composed of 64 equal squares. The eight vertical lines of squares are called columns. The eight horizontal lines of squares are called rows. The squares are colored black and white alternately. The lines of squares of the same color, touching corner to corner, are called diagonals. The chessboard is placed between the players in such a way that the near corner to the right of each player is white. The columns are labeled a to h from left to right. The rows are numbered 1 to 8 from bottom to top.

The Pieces

At the beginning of the game, one player ("white") has 16 white pieces, and the other ("black") has 16 black pieces. The white player pieces are: one King (e1), one Queen (d1), two bishops (c1 and f1), two knights (b1 and g1), two rooks (a1 and h1), and eight pawns (row 2). The black player pieces are: one King (e8), one Queen (d8), two bishops (c8 and f8), two knights (b8 and g8), two rooks (a8 and h8), and eight pawns (row 7). The initial position of the pieces on the chessboard is shown to the right.

The Moves

A move is defined by the following rules:

  1. "White" moves first. The players alternate in making one move at a time until the game is completed.
  2. A move is either (1) the transfer by a player of one of his pieces from one square to another square, which is either vacant or occupied by an opponent's piece, or (2) the discarding by a player of a pass chip
  3. No piece except the knight may cross a square occupied by another piece. That is, only the knight may jump over other pieces.
  4. A piece played to a square occupied by an opponent's piece captures that piece as part of the same move. The captured piece is immediately removed from the board.

A player's moves are limited by the following fact: A player is forced to capture an opponent's piece whenever possible. If a player can take several of the opponent's pieces, he/she is free to choose which piece to take. This limitation does not exist in regular chess. The two exceptions to this rule are being in check and passing.

All the pieces move exactly as they do in standard chess. An excellent description of how each piece moves and captures is here http://www.princeton.edu/~jedwards/cif/intro.html. Pay special attention to the descriptions of castling and en passant. There are two additional moves that are native to antichess: