A two-player command-line chess game in Ruby, with RSpec tests.
You need Ruby and Bundler.
git clone https://github.com/4R1u/ruby-chess.git
cd ruby-chess
bundle install
Run the main.rb file
ruby lib/main.rb
Once you've launched the project, enter moves in chess notation.
One thing to note is that I haven't implemented ++ or # for checkmate, the game will detect a game over condition automatically.
Ctrl-C to exit.
The game also declares check automatically, and prohibits illegal moves or those that put you into check.
This project was part of The Odin Project, but I skipped some features because the project was dragging on for too long:
- Serialization(save/load), a core requirement
- A nicer interface
- Single-player mode
