I'm wondering about how to get started in building a bot to play a board game that's defined through a RESTful interface that has methods such as... joining a game, retrieving game state, checking turns, retrieving player state, and making actions.
My question is, How does my bot (written in java) know when it is its turn to play? Since the game is defined through a RESTful interface, should my client be calling the "checking turn" REST method over and over until it becomes my bot's turn to play? Like every half a second?
How does my client gracefully keep up to date with the current state of the game?
Thanks!