I'm making a 3D version of Tic Tac Toe, (using cubes and spheres rather than Xs and Os.) I've successfully gotten alternating objects to spawn where I want them, while preventing an object from being placed in a "filled" spot. [I figured out a way to count the moves too, but it's rather convoluted and will have to be improved later.]
What I want to do next is make it so players can undo moves in succession. What I've been told is that I need to record moves, or entire board layouts, and go back to an earlier place in the game. That makes sense, but what I don't understand is exactly how to achieve that, and I think my problem is conceptual more than scripting. In other words, I don't understand some things about blender, and if I did I could probably figure out the scripting part.
Primarily, when objects are spawned, how does blender keep track of them? There has to be someplace where blender keeps a list; spawnedCube1, spawnedCube2, etc. And if so, is there some way to access this information and do something like; spawnedCube2(end).
Also, if I wanted to revert to an earlier version of the board/game, I'd still have to erase what's on the screen. Is this done with layers, scenes, or is it just a matter of scripting?