Skip to content

famulu/ruby-chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A chess GUI written in Ruby.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages