A Harlowe 1.2.2 question.
So, I have a list of competitors for an election that I thought should be stored as a datamap of names, each name paired with a random value representing electability. Is there an easy way to get the name paired with the highest electability value, or better still (since Roman elections returned 2 winners) the names associated with the two highest electabily values? I've been throwing myself at it brute force without much luck. I'm pretty new to Harlowe but I've been hobby coding for a long time if that makes a difference. Any suggestions?
So, I have a list of competitors for an election that I thought should be stored as a datamap of names, each name paired with a random value representing electability. Is there an easy way to get the name paired with the highest electability value, or better still (since Roman elections returned 2 winners) the names associated with the two highest electabily values? I've been throwing myself at it brute force without much luck. I'm pretty new to Harlowe but I've been hobby coding for a long time if that makes a difference. Any suggestions?