harmonyrose / 3rd-Party-Problem

0 stars 0 forks source link

Track # of voteless candidates #28

Closed divilian closed 8 months ago

divilian commented 8 months ago

i.e., how often does line 240etc get run?

divilian commented 8 months ago

Actually, reopen and ask @harmonyrose about this. On line 247-ish, if "max(vote_counts.values()) == 0)" is true, does this mean (a) the candidate actually got zero votes in the election, or (b) the candidate discovered that if it chose to shift to a certain chase point, it would then get zero votes in the election?

harmonyrose commented 8 months ago

If max(vote_counts.values()) == 0) is true, then the candidate discovered that for every chase point it tried, it got zero votes in the hypothetical election. If this is the case, the candidate just moves to the first point listed in the vote_counts dictionary, given the point is between 0 and 1 for each issue.

divilian commented 8 months ago

Ah, okay. Makes sense. I think my code for this is correct, then. (d3e0443)