Tic Tac Toe AI project - system("CLS") not doing its job

Hi there. I've been coding for a good year now, but I have run into this issue where system("CLS") was not actually clearing the screen. I've heard people say that it's not a necessary part for any code, but when drawing the tic tac toe board clearing the screen makes it so that the board is updated on the screen, so I do want to use this command. Now I am getting multiple instances of the board.

I've also heard of things like flushing out the input stream which might prevent properly clearing the screen, but even when implementing that into my code, it doesn't seem to work.

If you'd like me to post my 200+ lines of code, let me know. I don't really know exactly where it is messing up.
Topic archived. No new replies allowed.