Basic C++ Tic Tac Toe
Hey all, I'm making tic tac toe in C++ and have a little trouble. I have some code but it isn't with me right now. The problem is, I have to make it very basic. I can only use if-then statements, cases, loops, and the iostream and string libraries since that is all we have done at school. I have the player's turn but need some help on the computer so it doesn't just pick a random number and go there. It needs to be at lease semi-intelligent. Any ideas?
he wins!
there's always a way to win as long as the center isnt taken by the time of your 2nd move.