chiark
/
gitweb
/
~ian
/
appendix-a6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ae008e
)
stv: Document input format
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 21 Aug 2016 11:03:19 +0000
(12:03 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 21 Aug 2016 11:03:19 +0000
(12:03 +0100)
stv
patch
|
blob
|
history
diff --git
a/stv
b/stv
index ebd99ffbb97a60bbe700b42346589eac30777168..3c6160e979f27ffa7f026ed59d20a4b2dabf2710 100755
(executable)
--- a/
stv
+++ b/
stv
@@
-3,6
+3,19
@@
# Does STV according to
# http://www.rosenstiel.co.uk/stvrules/av/index.htm
+# Usage:
+# ./stv [TIEBREAK ...] PLACES [INPUT-FILES ...]
+#
+# PLACES is the number of seats to be filled
+#
+# INPUT-FILES are in the format:
+# VOTER PQRST
+# where P, Q, R, etc. are candidates. Candidates
+# must be single letters.
+#
+# Each TIEBREAK is
+# P,Q,...
+
use strict;
use utf8;
use autodie;