Skip to content

Latest commit

 

History

History
54 lines (29 loc) · 1.12 KB

README.md

File metadata and controls

54 lines (29 loc) · 1.12 KB

Chess Game in Ruby

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.

Chess board

Features

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

How to Play

  1. Clone this repository to your local machine:

    git clone [email protected]:Hossam-Allam/chess.git
    
  2. Navigate into the project directory:

    cd chess
    
  3. Install dependancies

    bundle install
    
  4. Run the game

    ruby main.rb
    
  5. Type "help" to read how to play the game

Possible Future Enhancements

  • Implement AI for single-player mode.