I’ve finally solved the movement problem for the rook, bishop, and queen. Initially, I tried integrating their movements with the check code, but it just wouldn’t work. After several implementation attempts, I decided to modify (again) the movement generation for the rook and bishop, which I’d initially been unable to implement. Taking a different approach than I’d initially tried, their implementation turned out to be easier than expected. I later got everything working correctly, and now all the pieces correctly check the king
(the video doesn’t show it well but pieces are actually blocked from moving when king is in check. working on making it recognizable)