I am working on Tic Tac Toe, and I am mostly complete. This is a side program snippet of code to avoid messing up the other program, but its essentially the same idea. I am trying to make the validation part so the condition of the if statement evaluates if the spot is empty or not, by having the char space in there, ' '. This does not seem to be working for me, can anyone help?
Also, I am trying to get some ideas about how to go about programming when someone wins. Should I do this with a bunch of if statements and include all possible combinations of a win? This seems to be an impractical approach, so please excuse my novice programming.