I've written a console-based chess program which has a Move() function to move pieces if the proposed move is valid. I want to use this function to check for check and checkmate (create a temporary board and go through each possibility and see if the king is in check(mate)). But the move function has cout output, so if I used it it would garble the screen for the user.
So, instead of writing another function without all of the output, might there be a way to ignore the cout's in the function?
Thanks!



LinkBack URL
About LinkBacks


