Ruby-chess is a Ruby chess application that implements chess move validation, chess piece movement/capturing, moves reversal and re-execution (undo and redo) and check/checkmate detection. It also supplies a simple chessboard GUI allowing you to play chess as is.
Despite being horrible at the game, I have always been fascinated by the game of chess. For example, did you know that even if we were to make a universe-sized perfectly efficient computer, it would still take more than 2 billion years for it to analyze every single game of chess!!!
- Install Ruby
- To check if Ruby is installed, run
ruby -v - If not installed, run
brew install ruby
- To check if Ruby is installed, run
- Install required libraries for Gosu:
brew install sdl2 libogg libvorbis - Install Gosu:
sudo gem install gosu
- Download the code from the repo
cdinto the downloaded folder- Run
ruby chess.rb - Enjoy 😇
- Gosu - A 2D game development library for Ruby and C++.
This project is licensed under the MIT License - see the LICENSE file for details.
