jeanpaulsio / ruby-chess

Ruby CLI Chess

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Command Line Chess

Chess Rules

TODO

» Need to implement:
    - en passant
    - stalemate
    - pawn promotion
    - save/load game

Instructions

 ██████╗  █████╗ ███╗   ███╗███████╗     ██████╗ ███████╗     ██████╗██╗  ██╗███████╗███████╗███████╗
██╔════╝ ██╔══██╗████╗ ████║██╔════╝    ██╔═══██╗██╔════╝    ██╔════╝██║  ██║██╔════╝██╔════╝██╔════╝
██║  ███╗███████║██╔████╔██║█████╗      ██║   ██║█████╗      ██║     ███████║█████╗  ███████╗███████╗
██║   ██║██╔══██║██║╚██╔╝██║██╔══╝      ██║   ██║██╔══╝      ██║     ██╔══██║██╔══╝  ╚════██║╚════██║
╚██████╔╝██║  ██║██║ ╚═╝ ██║███████╗    ╚██████╔╝██║         ╚██████╗██║  ██║███████╗███████║███████║
 ╚═════╝ ╚═╝  ╚═╝╚═╝     ╚═╝╚══════╝     ╚═════╝ ╚═╝          ╚═════╝╚═╝  ╚═╝╚══════╝╚══════╝╚══════╝

» When you play the Game of Chess, you win or die.      

Special Moves

###Castling Castling is a move where the King and the Rook make a move simultaneously. The following conditions must be met:

  • The King has not yet moved in the game
  • The Rook involved has not yet moved in the game
  • The King is not in check
  • The castling move does not put the King in check
e1 g1 castle    # white kingside
e8 g8 castle    # black kingside
e1 c1 castle    # white queenside
e8 c8 castle    # black queenside

Game Board Screenshot

alt tag

Installation

$ gem install colorize

Run Game

To play game, run the following in your terminal from the root directory

$ ruby lib/game/play.rb

About

Ruby CLI Chess


Languages

Language:Ruby 99.9%Language:Shell 0.1%