Skip to content

Latest commit

 

History

History
38 lines (20 loc) · 1.77 KB

README.md

File metadata and controls

38 lines (20 loc) · 1.77 KB

aAChess

aAChess is a two day chess project built entirely in Ruby. Start a game by running "ruby game.rb" in the aAChess directory.

Begin by putting in both player's names.

Input Player 1 name

The game uses a red cursor. Move the cursor with the arrow keys, and select using the space bar.

Standard Board

When a player selects a piece he/she owns, the valid moves for that piece will be highlighted in green.

Valid moves for the queen are highlighted

To capture a piece, simply move your piece on top of the other player's piece. Taken pieces will show up on the right.

The black pawn can take the white pawn. Taken pieces are visible on the right.

To castle, select the King, and select the position the King would be in after castling.

The king is ready to castle

Castled

To take a pawn en passant, simply move the piece diagonally behind the pawn to be taken.

The black pawn can take the white pawn en passant

The black pawn has taken the white pawn en passant

Pawns will automatically become queens upon reaching the opponents back row.

The white pawn is ready to promote

The white pawn has been promoted to a queen

The fazibear/colorize gem was used to color the board, cursor, and move highlighter.