Skip to content

aref-daei/fantasy-chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

41 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โ™Ÿ๏ธ Fantasy Chess

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.

๐Ÿ› ๏ธ Installation & Run

Clone the repository and compile:

git clone https://github.com/aref-daei/fantasy-chess.git
cd fantasy-chess/src
gcc main.c -o chess
./chess

๐ŸŽฎ How to Play

The 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.

๐Ÿช„ Fantasy Rules

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.

๐Ÿ‘‘ Main Difference from Classic Chess

This is a friendly and imaginative version of chess. There is no checkmate - everyone just moves around and captures each other!

๐Ÿ“œ Notes

  • 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!

๐Ÿ“ License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

A CLI chess game in C, my first university project - with fun fantasy rules.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages