Question: This is a chess program written in C++. I'm trying to fix my promotion logic, but I can't get any cout statements to print, let
This is a chess program written in C++. I'm trying to fix my promotion logic, but I can't get any cout statements to print, let alone changing pieces. I haven't completed capturing, check/checkmate, or castling features. This is the main file
chess.cpp:

This is where Black's promotion logic is:

haven't mirrored it yet for white, but I want to get statements in the first section fixed:






Let me know if you need the other files for context. Thanks in advance! Don't need new codebase from scratch, just a fix for the mentioned promotion logic.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
