I know a lot of people ay that global variables are bad practice, but it looks like I might need them. The problem is with my TTT Game. I have two functions that seem to be causing this...
ShowBoard() and MakeMove().
Because MakeMove() requires char board; I need to define it in the function. But ShowBoard (obviously) also requires char board; so I have to re-declare char board; in both. Which means that ShowBoard() keeps the old version, therefore the board is never really updated, so would I be right in saying that global variables would be a good idea in this situation? I Could post some code if you wish, but I don't think it's neccessary.
Edit: How would I go about declaring a global variable?