Pawn moves - Implementing Chess with Ruby for beginners

In this series, we're discussing several object oriented design concepts while building a simple terminal based Chess game with Ruby. In this episode, we continue work on our Pawn class -- a surprisingly tricky piece to get right given it's small size ;) We add support for deriving the list of available_moves for a given piece on the board at a specific location and talk about some limitations.

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