The Odin Project Assignment: "Build Chess Game in Ruby"
My implementation of Chess - a two-player strategy board game played on a chessboard, a checkered gameboard with 64 squares arranged in an 8×8 grid. The game is played by millions of people worldwide. Please see Wikipedia article for extended info.
Save Chess folder in your chosen location
And then inside of it execute:
$ bundle
To play the game run:
ruby Chess-game\lib\chess.rb
You can play as Bob (white pieces e.g. wP, wB, wQ) or Frank (black piesec e.g. bP, bB, bQ)
To make your move use Algebraic chess notation
To move a piece
Nf3 (move a knight to f3)
d3 (move a pawn to f3)
Be5 (move a bishop to e5)
You ought to omit indication that any capture has been made! Game will notice any captures automaticly.
If you move a piece to a position where another same piece can move, game will notice the it and ask you to be more specific. You can be more specific by inputing:
e7-f6 (move a pawn from e7 to f6)
Ng8-f6 (move a pawn from Ng8 to f6)
- Simple Graphics
- No Castling
- No Draw
- No AI available (sic!) :P
- No clock or taken pieces table is working
- No pawn promotion
- More detail instructions in the game and in enghlish
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
* See license.txt for usage details.