Skip to content

Fully featured 2-player chess game built in ruby, you can check out the replit link below for a live preview, but it will run much smoother if you clone it and run it on your own machine. Enjoy :)

Notifications You must be signed in to change notification settings

Hossam-Allam/chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Fully featured 2-player chess game built in ruby, you can check out the replit link below for a live preview, but it will run much smoother if you clone it and run it on your own machine. Enjoy :)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages