Suicide Chess
Rules
- Pieces move in excatly the same way as in regular chess
- If you can take your opponent's piece then you must do so
- If you can take more than one of your opponent's pieces then you may take any of them
- The first player to lose all of their pieces wins
- The game does not end when a player's king is taken unless all of their other pieces have been taken
- Both players' last moves are highlighted
Java Source Code
AlphaBeta.java | Helper class used by the Minimax class. |
Board.java | A concrete class extending the Minimax class using bitboards to represent the pieces on a chess board. |
Icons.java | Class with static attributes to load and store the icons used by the game. |
Minimax.java | An abstract class for any board game wishing to use the Minimax algorithmwith Alpha-beta pruning. |
Move.java | A helper class used to represent moves on the board. |
SuicideChessApplet.java | An applet class providing a user interface to the Board class. |
Complete source (zipped, 6kb)
This applet was created using the BlueJ IDE - a Java development environment designed for use in educational establishments to teach object-oriented programming.
Chess piece icons from http://www.iconarchive.com/icon/game/chess-by-iconmuseo/index.html
Known Bugs
- Castling not supported
- Pawns always promoted to a queen. In suicide chess the player would probably want the pawn promoted to the piece of lowest value