Check and checkmate - Implementing Chess with Ruby for beginners

In this series you'll learn object oriented basics while building a simple terminal based Chess game with Ruby.

In this episode, we implement the logic to see if a player is in check or in checkmate.

Playlist: https://www.youtube.com/watch?v=Zc0ZuH3Qpxw&list=PLS6F722u-R6LZxh7mvEUvZKshcH6KSNhr
Code: https://replit.com/@CJAvilla/chess#main.rb