Obfuscated Vote Counting Contest 223
Daniel Horn writes "In a flash of inspiration coming from the Obfuscated C code contest and the current E-voting scandals, I wondered if there shouldn't be a similar code obfuscation contest based on obfuscating voting results, that is, C code that appears correct but does the wrong thing when counting votes. Submit your obfuscated vote-counting code now, and the two winners will be selected on November 2 and will receive a free Vega Strike CD. Obviously incorrect code, however, is not welcome."
Summary of this year's election (Score:5, Insightful)
{
AMERICAWINS,
AMERICALOSES
}
int main()
{
bool voted = didYouVote();
Outcome o;
switch (voted)
{
case true:
o = AMERICAWINS;
case false:
o = AMERICALOSES;
}
return o;
}
Re:Summary of this year's election (Score:2, Insightful)
Re:Summary of this year's election (Score:3, Insightful)
Re:last election (Score:4, Insightful)
Re:my submission (Score:3, Insightful)
The pollsters "are hoping" that young people continue their streak of not voting much, so their numbers remain accurate.
It's all B.S.
This is pretty much accurate: (Score:5, Insightful)
return 0;
if(GetVote(&voter))
{
switch(voter.vote)
{
case BUSH:
case KERRY:
++BusinessAsUsual;
break;
default:
AlertFBI();
}
}
Ken Thompson's compiler hack (Score:5, Insightful)
Both compiler and voting application code would appear pristine, with the the actual hack existing only in the compiled code.
Re:You Think You're Funny (Score:4, Insightful)