Skip to content

ultrapabs/ruby_chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Ruby Chess

A text-based chess game for the command line built in Ruby.

Instructions to Play

  1. Download the zip file and navigate to the 'ruby_chess' directory in the terminal.
  2. Install the Colorize gem using 'gem install colorize'.
  3. Run 'ruby play.rb'.
  4. Follow prompts.

Features

  • Two-player game
  • Characters displayed as chess pieces
  • Displays grid for easier move selection
  • Prevents player from illegal moves and from moving into check
    • Prompts user to re-enter move(s) if invalidate coordinates or characters are entered
    • If first check passes, uses a "deep_dup" method to copy the board and perform the move, checking for validity

To-Do List

  • Add a computer player
  • Add save/load game options

Releases

No releases published

Packages

No packages published

Languages