Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 266 Bytes

README.md

File metadata and controls

13 lines (12 loc) · 266 Bytes

plurality

A command-line program that simulates an election using the "plurality" voting system (also known as "first-past-the-post").

Example usage:

$ ./plurality Alice Bob Charlie
Number of voters: 4
Vote: Alice
Vote: Bob
Vote: Charlie
Vote: Alice
Alice