Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to detect the start and end of a human players turn?

detect Human Player turn
0
Posted

How to detect the start and end of a human players turn?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123