 |
|
Maquiladora
|
|
quote: Originally posted by Immortal Wombat
oh yeah? |
omg they have a seperate forum for polls in civ3 demo games, have a look at those threads in there, talk about overkill. Is it just me or does civfanatics have alot more younger posters? I suppose Civ3 is the schoolies game of the moment so they had to go all out.
|
|
|  |
 |
|
Gilgamensch
|
|
France
Jun 2002 time: 06:23
|
|
Good choice, means that Lemuria has won, as one vote for Apolymuria is 'illegal'.............
(according to Locutus)
|
|
|  |
 |
|
Gilgamensch
|
|
France
Jun 2002 time: 06:23
|
|
Looks like the people missing don't want to vote??????
But I must say, I am afraid to restart this poll............
|
|
|  |
 |
|  |
 |
|
Locutus
|
|
ACS CTP1/2 Manager & Civ4 Co-Manager
|
 |
Hengelo, The Netherlands
Nov 1999 time: 06:23
|
|
A bit off-topic but still: it seems solved now, but this situation of a total lockdown might occur again in the future. It would be good to have a way of dealing with it.
In a case where the entire community is divided 50-50, the only proper way out IMHO is to roll a dice (even after several rounds ). But of course, if one of us actually rolled a dice, the rest of us would not be physicially present when this happens, making it impossible to check the dice-roller is not abusing the situation to just go with whatever he likes best. And even if he doesn't do this, others might still accuse him of doing so. So we need a reliable, objective way to pick a random option.
That's why I wrote a little PHP script to do this for us: it picks a random number, using the thread ID as a seed. When you post a poll, the thread ID that your poll will get is very hard to predict, so it's more or less random (for a randomize seed a difference in the seed of 1 is just as unpredictable as a difference of 10,000). The fixed seed ensures that you always get the same result, so there can't be any dispute on the outcome as everyone can double-check it for himself.
I've written and uploaded this script, you can find it here. Simply type in the thread ID of the poll (e.g. 66740 for this thread) and the number of options that can be voted for (e.g. 2 for this thread - Abstain option doesn't count of course) and hit submit. It will return the number of the option that wins the poll if there is a tie and there are no alternative solutions available (e.g. for this poll the winning option is option number 1, which would be Lemuria). For all those weird people who don't start counting at zero as they should (and like I do), I made one the first option rather than zero).
I'm attaching the code of the script here for all to see, so anyone (with at least rudimentary programming skills) can check for himself there's nothing suspicious about it or whatever:
PHP:
$seed = $_POST['thread'] + ???;
$range = $_POST['options'];
if ($range < 2) { $range = 2; } // avoids an error when someone enters crap input
srand($seed);
$randval = rand(1, $range);
echo "$randval";
You can view the source of the HTML code by visiting the link above and selecting Source from the menu View (in IE at least, for other browsers it's very similar).
The only note here is the '???' part: this is actually a number which I will never reveal. Should anyone somehow manage to find a way to predict what the thread ID of a future poll thread will be, this number will make sure it will remain impossible to predict what the winning option of this randomize script is going to be. The only person who knows this number is yours truly, but I'm sure noone will object to the official mod knowing it, especially since even with that number it's practically impossible to predict the outcome...
Last edited by Locutus on 05-12-2002 at 03:41
|
|
|  |
All times are GMT. The time now is 05:23. Apolyton Time is 00:23. |
top of page
|
|
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
|
|
|
|
|
|