I thought it would be a good idea to start posting up some of the problems I run into while developing the game, along with the solution I manage to eventually come up with. It might come in handy for anyone reading, and at the very least it’s useful for me to write this stuff down for future reference.
I’ve been working on the scripting of the game logic for beginnings and ends of rounds, and I came across a bit of a puzzle. At the end of a round, I need to be able to use the player’s scores (stored in an array) to find the winner of the round. It’s a simple enough task, but the solution took me a surprising amount of effort to arrive at. The solution I came up with was so simple I’m wondering why I didn’t come up with it to begin with.