Battles
Again, not much time spent on the game today unfortunately. What little time I did spend on it was setting up the concept of Turns, i.e. two players submitting a few cards each and then the logic being done to determine the outcome of the turn and return a result.
I’m not sure of the best way to approach it, but how I’ve done it is that when a player submits their actions for the turn it checks for an outstanding Turn and creates a new one if one doesn’t exist. When the last player submits their action it’ll run the logic.
I thought it would be cool to store the turns so you could replay a battle, or at least see what happened.
I’m approaching the point where I’ll need to create Player accounts and get multiplayer going so I can test some battles in real time between two separate browsers. That’ll be a milestone!
For multiplayer I’ll use SignalR. I tested it out once a while back and it was pretty straight forward.