Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

Is there any way to pick highest values out of a Datamap?

$
0
0
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?

Viewing all articles
Browse latest Browse all 1844

Trending Articles