This is an explorable explanation of the Sequential Phragmén voting system (invented in the 1890s) currently used on Kusama and Polkadot's on-chain elections. You can create candidates and voters, adjust their voting stake (drag left and right or type) and add and delete votes to see how it affects the results.
The code is based on the Python reference implementation
- Explain loads and scores per round
- Add conviction to votes
- Figure out ordered votes for council elections
- Simplified/complicated views
- Import on-chain election results
$ npm install
$ browserify -p esmify src/index.js -o bundle.js