Skip to content

frcroth/elections

Repository files navigation

elections

Language grade: JavaScript
This tool allows you to simulate elections. Place candidates and voters on a political coordinate system, and compare different voting systems to get different results.

Try it

Mechanisms

Currently implemented voting mechanisms for a single seat:

For multiple seats:

Usage

Add voters by clicking into the coordinate system. Add candidates by clicking into the coordinate system and setting the appropriate draw mode.
Party names are just for flavor and do not have any real political meaning or valuation.
Select a Voting mechanism and look at the results.

Deployment

Install dependencies with npm i.

Start the webpack dev server with npm start.

Run npm run deploy to deploy to gh-pages.