8071
Comments (639)
sorted by:
You're viewing a single comment thread. View all comments, or full comment thread.
16
Cakes4077 16 points ago +16 / -0

Counter = 0;

If(vote == D){

Counter++;

If(counter % 20 == 0){

BidenCount++;

Counter = 0;

}

}

4
permissible_missile 4 points ago +4 / -0

If you're using modulo division, you don't have to reset Counter to 0, fyi

4
permissible_missile 4 points ago +4 / -0

Also code formatting is fucked and it'd be pretty sweet if it wasn't

4
trollkin0331 4 points ago +4 / -0

Doesn't even compile. What does counter in the modulo conditional refer to? Someone needs to learn to code.

3
permissible_missile 3 points ago +3 / -0

Maybe they use a case insensitive language lol, but yeah it's not the best ;p

2
Cakes4077 2 points ago +2 / -0

True, I’m glad I’m not having to do any real programming till January cause my brain has been fried lately.

3
chuckachookah 3 points ago +3 / -0

Your point is well made, though.

It's 6-7 lines of code (max).

2
spaceman00 2 points ago +2 / -0

At brazil at 2014 election (second round with only shills candidates, they rigged the re-election of an candidate and other shill allowed it), it was something like that:

1-You counted some amount of votes and allowed the vote count to run normaly

2-Check if candidate A has less votes than B, if yes, at the next batch of X votes, all votes not for B goes to B. If not the votes works normaly

3-Count the next batch of X votes normaly

4-Go back to 2.