A classic Chess game, written in Ruby. It was developed applying Test Driven Development techniques, automating tests with RSpec. This was the final project from TheOddinProject Ruby programming curriculum. The game can be played as multiplayer or against a bot. Play it at Replit!
If you’ve never played, be sure to read up on the rules (see the Wikipedia Page) first. Also checkout Chess.com
The game is played using chess notation
K: King, Q: Queen, B: Bishop, R: Rook, N: Knight, P: Pawn
x: Capturing, =: Promoting to , +: Check, #: Checkmate
Here's a few examples:
e4 | Pawn (P ommited) to e4
Nc4 | Knight to c4
Qd7+ | Queen to d7, + representing a check
Kxb5# | King captures at b5, # representing a checkmate
exf6 | Pawn (from column e) captures at f6
fxg7=Q | Pawn (from column f) captures at g7 and gets promoted to a Queen
Ruby:
- "3.1.2"
Gems:
- rspec
- ruby_figlet
- colorize