Ok, I've got a bit of a conceptual question here. I'm building a turn based game and I'm at the point now where I'm going to try to add the computer player. I think (since I'm modeling my state management on Example 18) that I need an event to fire at some point either before or after the AI's turn to update the GUI. But I'm not sure how to do this.
I have a vector of keywords called :turn-order in the state atom. Those keywords are the keys in a map of players (called forces), which know if they are AI or not. So I know how to see if the next action should be taken by an AI or a player
(get-in forces [(first turn-order) :player] :player) But what do I do then?