How to detect the start and end of a human players turn?
In a two-player game against a human you can deduce that it is their turn when it is not your turn. If all the AI players are controlled by the same module you can detect when it is the turn of a non-AI player. In a game with more than two players where between none and most players are human you could detect that the computer is less busy during human player’s turns. AIs will tend to use 100% of available processing resources whereas a human will pause between actions. On a busy computer it could be hard to notice the difference.