/Chess

Chess game written in Ruby

Primary LanguageRuby

Chess

A two-player chess game written in Ruby and played in the console.

##About I wrote comprehensive RSpec unit tests and created modules (here and here) to DRY up specs code.

SlidingPiece and SteppingPiece classes are utilized to avoid repetition and DRY up pieces code. Keyboard support is implemented via io/console extension of Ruby's built-in IO class.

##How to Play The game is played via keyboard input. To pick a piece, use arrow keys for navigation on the board and 'enter' for selection. Repeat for destination cell.

  • Download the repo
  • Navigate to the Chess folder and run:
$ bundle install

You are now ready to play the game!

$ ruby play.rb

##To-Dos

  • Write RSpec unit tests
  • Implement en-passant, promotion and castling
  • Implement Computer Player AI