View Single Post
Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#66
With respect to the voting system I think it was already proposed to use the one we used for last years competition. I also think, we should "formalize" the voting system as soon as possible in order to avoid any hassle later on.

So, for last years competition we decided to use FTSTV (Fractional Transfer Single Transferable Vote) with a script created by neal to establish an order amongst the participants.
Code:
election=$1

tail -n 1 $election | sed 's/"//g'

>/tmp/result
for i in $(seq $(expr $(head -c 2 $election) - 1))
do
  openstv-run-election -r CsvReport -s $i FTSTV $election \
    | awk -F, '/Elected/ { print $1 }' \
    | while read w
        do if ! grep -q "$w" /tmp/result
          then
            echo $w >> /tmp/result
            break
          fi
        done
done
awk 'BEGIN { i = 1; } { print i, $0; i++; }' /tmp/result | sed 's/"//g'
Which is run as follows:
Code:
for i in *.blt; do sh results $i; done
iirc, the above code of the script needs to be stored in a file named "results" that is called from the for-loop quoted above.

You can find neals post where he posted this script there: http://talk.maemo.org/showthread.php...36#post1132136
Furthermore, on this page of last years thread there are many posts that explain the situation etc.: http://talk.maemo.org/showthread.php?t=71561&page=89

If it helps I would volunteer for counting the votes this time as well. But I would like some other people to do the counting as well in order to avoid errors or concerns. Generally, the results via the proposed system above should be reproducible by everyone.

Edit: You can get the openstv version we used also last time from: http://packages.debian.org/squeeze/openstv
You can simply extract the exectuble from the debian package.
__________________

Last edited by Wonko; 2012-05-21 at 15:21.
 

The Following 10 Users Say Thank You to Wonko For This Useful Post: