This project is a CLI chess game that implements a set of fantasy rules instead of the traditional ones. It was originally created as my first university project and focuses on experimenting with the gameโs core logic in a simple console environment.
Clone the repository and compile:
git clone https://github.com/aref-daei/fantasy-chess.git
cd fantasy-chess/src
gcc main.c -o chess
./chessThe game runs entirely in the terminal. Moves are entered using a simple algebraic-like command:
Pc2c3
This means: move the Pawn from square c2 to square c3.
- The first character is the piece (
P= Pawn,N= Knight,B= Bishop,R= Rook,Q= Queen,K= King). - The next two characters are the starting square.
- The last two characters are the target square.
This is not a standard chess game! The pieces move in a fun and creative way:
- Pawn: Moves only forward and backward, and can capture only the piece directly in front or behind.
- Knight: Jumps differently - one square forward and three squares to the side.
- Bishop: Can "fly" but is only allowed to move in the direction opposite to the side of the board it started on.
- Queen: Combines the movements of a bishop, knight, and rook.
- King: Never gets checkmated - in fact, there is no check or checkmate at all in this game.
This is a friendly and imaginative version of chess. There is no checkmate - everyone just moves around and captures each other!
- This was my first university project, designed to experiment with both C programming and game logic.
- The main purpose is fun and creativity, not competitive chess.
- Contributions and forks are welcome-feel free to expand the fantasy!
This project is licensed under the MIT License. See the LICENSE file for more details.