Implementation of the "Single Transferable Vote" system in Haskell.
A list (votes) of Tuples which contain Tuples with the following = [a list of votes in Strings], the weight of the votes (always 1000) is included in this repository:
To get the election results fun the following in GHCI:
runElection votes 3
where:
- runElection: the main function whihc runs the voting system.
- votes: is the list of votes (described above) which the candidates will be picked from.
- 3: the number of available seats.
after running the above, the three candidates which where elected will be displayed in the order they were elected in: