very new to this so bear with me, but the code runs the cpu move fine and after you input a move for the human it just closes out, any input would be much appreciated
Morning.
Only had a quick look but, on lines 58 and 64 you're not calling your analyser function properly.
on line 57, is your call to gameboard supposed to be part of the 'if'? it's difficult to tell as you've no braces around statements. i tend to put braces on if's even when there's only one line in it.
edit:
wait a sec.. You're calling analyser like this: if (analyzer())
etc etc..
which implies to me that the function returns a bool, but it's actually returning a char??
OK I see my main function was all kinda of crazy so I am attempting to correct it, but I am at a loss. I have been looking at other codes to try and understand it, but I just can not seem to grasp it. However, the program just runs forever without stopping and I am trying to figure out how to make the game pause so that a cpu and human move is made everytime
So I am trying to reformulate the main into something along the lines of