6 ms·
Haha, very funny. It's based on the first three characters of each name.
by pronoiac 6y ago
Haha, very funny. It's based on the first three characters of each name.
- saeranv 6y agoHmm... I don't see it. Can you explain further?
- henryfjordan 6y agodef win(A,B): s = ((50*(ord(A[0])-ord(B[0])) + 114*(ord(A[1]) ord(B[1])) + (ord(A[2])-ord(B[2]))) % 199) % 2 return B if s else A ord() basically casts a char into the corresponding integer (ord("A") == 65, for instance). The whole algo is basically just some math based on the first 3 characters in each of A and B
- jschwartzi 6y agoNumerology has been a time-honored way of making predictions for millennia.
- tibbon 6y agoFor the longest time didn't they always talk about how the tallest candidate had historically won since some date... And then it stopped working.
- saeranv 6y agoAlthough... if I was building an election model, I would include candidate height as one of my predictors.
- TimTheTinker 6y agoNot using ASCII letter values, though.
- deleted 6y ago[deleted]
- panarky 6y agoFunny how 'Jimmy Carter' wins against 'Gerald Ford', while 'James Earl Carter' loses.
- merb 6y agoit's python and saying A[0] means first character and ord returns an integer for the current unicode glyph (like char, but for unicode) i.e. the seed are basically the first three characters.