This is a command line chess game written in Ruby.
- Clone this repository.
- On the command line, cd to the repository's directory.
- Use the following command to start chess:
ruby lib/game.rb - Enter moves as two positions separated by a comma.
- Ordered like so: Starting position, destination position
- Positions based on standard chess grid, with letter first (eg. "e2, e4")
- Enter "quit" to leave the game.
This game is written in Ruby, and utilizes classical inheritance to keep code DRY. It makes use of unicode box characters to display the game board neatly on the command line without spaces between lines. The chess pieces are also drawn from a unicode codepage.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
- Fix save state (generate folder if necessary)