Skip to content

Latest commit

 

History

History
22 lines (22 loc) · 1.16 KB

File metadata and controls

22 lines (22 loc) · 1.16 KB

Ruby-chess

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.


Chess.rb in action


Inspiration

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!!!

Installation

  1. Install Ruby
    • To check if Ruby is installed, run ruby -v
    • If not installed, run brew install ruby
  2. Install required libraries for Gosu: brew install sdl2 libogg libvorbis
  3. Install Gosu: sudo gem install gosu

Usage

  1. Download the code from the repo
  2. cd into the downloaded folder
  3. Run ruby chess.rb
  4. Enjoy 😇

Thanks

  • Gosu - A 2D game development library for Ruby and C++.

License

This project is licensed under the MIT License - see the LICENSE file for details.