This is the final capstone project as part of the Ruby Programming Course at The Odin Project.
This program is a 2 player game, allowing you to play chess with another player on the command line.
At every turn, players will be prompted to enter the coordinates of the piece that they would like to move, followed by the coordinates they would like to move the piece to.
Players also have the option to either resign or propose a draw to the opponent.
There will be an option to save the game after every turn.
The game will be properly constrained, which will:
- prevent players from making illegal moves
- declare check and checkmate in the appropriate situations
- declare any draw by stalemate, threefold repetition and by 50 count move rule
You will need to have ruby 2.5.3 or above installed to play.
- Clone this repository onto your local machine.
- Navigate to the 'lib' directory located in the root directory on the program
- Enter
ruby play_chess.rb
- Follow the instructions to play
Link to The Odin Project assignment page