This is a command-line chess game built using Ruby. The game allows two players to compete against each other by taking turns to move pieces according to chess rules. The game includes features like check, checkmate, castling, and more. The gui utilizes ASCII characters to display the chess pieces.
- Standard 8x8 chessboard setup.
- Move validation for all pieces (King, Queen, Bishop, Knight, Rook, Pawn).
- Special moves:
- Castling (both kingside and queenside).
- Pawn promotion.
- Check and checkmate detection.
- Input-based gameplay where players enter their moves.
-
Clone this repository to your local machine:
git clone [email protected]:Hossam-Allam/chess.git
-
Navigate into the project directory:
cd chess
-
Install dependancies
bundle install
-
Run the game
ruby main.rb
-
Type "help" to read how to play the game
- Implement AI for single-player mode.