I've been thinking about this for a while, and while I have no code for this yet, since this is an entirely theoretical question, how would you be able to accurately portray who is in first place (probably by using an int variable) in a race of some sort?
And further on, what if there were varying levels of complexity such as racers with different starting times and positions in a curved, non-linear track?
I'm planning on working on some sort of determiner for this, and I'm wondering what the best method of performing this would be.