Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Interesting Code to ponder...

Kendra Bancroft
Rhine Maiden
Join date: 17 Jun 2004
Posts: 5,813
11-04-2004 10:29
if (UserInput==1)
{
* *Bush_vote+=1.2f;
}
else if (UserInput==2)
{
* for (int i=0;i<3;i++)
* *{
* * *SelectBush();
* * *GetUserInput();
* * * if (UserInput==DONE)
* * *{
* * * * Bush_vote+=1.4f;* *//Bonus for trickery
* * * * break;* * *
* * * }
* * }
* * if (UserInput==2)
* *{
* * * *Kerry_vote+=0.8f;
* *}
}
else if (UserInput>2)* //third party
{
* * Bush_vote+=0.5f;* *//they really meant to vote for Bush
* * Kerry_vote-=.03f;* *//they must hate Kerry
* * Candidate[UserInput]+=0.8f;
}

}

void FinalCountReturn()
{
* if (Kerry_vote>Bush_vote)
* *{
* * * *while (Percentage(Bush_vote)<51)* * * * *
* * * * * * *{Kerry_vote-=1f;Bush_vote+=1.5f;}
* *}
* *printf("Bush wins!";); //just like we promised
}
Sabbie DeGroot
Dutchy
Join date: 26 Jul 2004
Posts: 59
11-04-2004 10:31
:D

Sad part is that that code is probally actually used...
_____________________
Hurray