-
At each step the player can use the keyboard to select a piece to move, and then uses a cursor to walk toward the place where he’d like to move the piece.
-
When the cursor hovers over a particular piece, all the available moves for that piece are highlighted in blue.
-
If a move is invalid, the board will not let you move the piece. This includes but is not limited to: trying to move a piece off the board. Trying to move into check. Not moving out of check. Trying to move a piece over another one.
-
When a person is in check, a notification will display on the console, same things happens when a person is in checkmate
- If you don't have Ruby 2.0 or later, install it.
- Browse to the directory you want in the terminal.
- Clone the Git Repo in your computer.
- Make sure to have the colorize gem.
$ sudo install ruby
$ cd desktop
$ git clone https://github.com/zelaznik/chess.git
$ gem install colorize
- Browse to the directory and start the game
$ cd chess
$ ruby game.rb
- Your screen should now look like this: [start_game]: https://raw.githubusercontent.com/zelaznik/chess/master/images/start_game.gif
- ![Starting Sreenshot For Chess][start_game]
- The yellow squares are the squares that are active on the cursor. To move around the board use the following four keys like arrows: [mac_keyboard]: https://raw.githubusercontent.com/zelaznik/chess/master/images/mac_keyboard.jpg
- ![Mac Keyboard][mac_keyboard]
- "W" for up, "A" for left, "S" for down, "D" for right
- Hit "return" to pick a piece to move.
- Hit "return" again once you've navigated to the spot where you want to move.