Refresh

This website preview.rubydoc.info/gems/chess_vwong/0.0.1 is currently offline. Cloudflare\'s Always Online™ shows a snapshot of this web page from the Internet Archive\'s Wayback Machine. To check for the live version, click Refresh.

Chess

A barebones version of command-line Chess for 2 players.

TODO:

  1. Alert Check/Mate
  2. Castling & En-Passant Moves

Gameplay

The game is played on a standard 8 by 8 board as show below.

  A B C D E F G H  
8 

A user will first be prompted to select a chess piece belonging to his/her color. Once a the chess piece has been chosen, he/she will then be prompted to select a space to move that chess piece.

To enter a command, simply type in the X and Y coordinate without any spaces or commas seperating the two, for example:

  • A2
  • H7

(Lowercases are also accepted)

If a command is invalid, the use will be alerted and prompted again until a valid command is entered.

Installation

To install:

$ gem install chess_vwong

Usage

TODO: Write usage instructions here

Contributing

  1. Fork it ( https://github.com/[my-github-username]/chess_vwong/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request