I am writing a board game. For the computer’s move, I use a minmax algorithm to think through many possible moves.
The problem is that the tween I start to animate the player’s move before the computer begins thinking about its own doesn’t update while the computer is thinking. I would like it to update. If I could just do this, then by the time the animation finishes the computer should finish its thinking, or be close to it. But I can’t seem to get the tween to run while the computer is in the recursive minmax function.
Is there any way to fix this? I don’t think a core routine would work because it needs to return a value.
I amusing itween. I really only need to update the tweens when it is thinking, so if there is just some way to force itween to do that.
I am very new to unity, so sorry if this is a newb question, but I have been banging my head against the wall trying to solve it.
Thanks,