V
vaughanPCR
I'm creating a neural network to look at tic tac toe. I randomly
create places to 'pick' on the board. When the game is over I test to
see who won.
Theoretically (in the code) my playing board (a 4x4x4 array) is reset
(set to all zeros) after each win or loss is declared. For some reason
when I execute the code it will run the same board through several
times in a row without reseting. When I went to debug it by steping
through I couldn't repeat the error. When I put a delay in the problem
goes away (which is why I couldn't catch it in debug). When I shorten
the pause the problem almost goes away.
I've tried placing my reset() function in different places. I refuse
to believe it's actually doing the execution out of order. Anyone have
some ideas? If you need the code I can post it, but the code I use to
pick the winner is really long and hard to step through.
create places to 'pick' on the board. When the game is over I test to
see who won.
Theoretically (in the code) my playing board (a 4x4x4 array) is reset
(set to all zeros) after each win or loss is declared. For some reason
when I execute the code it will run the same board through several
times in a row without reseting. When I went to debug it by steping
through I couldn't repeat the error. When I put a delay in the problem
goes away (which is why I couldn't catch it in debug). When I shorten
the pause the problem almost goes away.
I've tried placing my reset() function in different places. I refuse
to believe it's actually doing the execution out of order. Anyone have
some ideas? If you need the code I can post it, but the code I use to
pick the winner is really long and hard to step through.