Skip to content

timhaley94/election_simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Election Simulator · License: MIT Maintainability Netlify Status CircleCI

This project seeks to simulate and visualize elections in "first passed the post" systems. Especially an effect of these systems known as Duverger's law, where, given enough time, FPTP systems tend to converge to effectively only two political parties.

Long story short, if you believe that voters act rationally, then, according to the math, FPTP guarantees your democracy will descend into an us/then flamewar.

See live at: https://election-simulator.netlify.com.

Special Thanks

This project was largely inspired by "Politics in the Animal Kingdom" and Nicky Case's fantastic "the evolution of trust".

Installation

Make sure you have a recent version of node (this app was written with v8.11.2), then run npm install.

Scripts

This project was bootstrapped with Create React App, so the usual suspects work:

  • npm start to start the development server
  • npm test to start the test runner
  • npm build to build the production site

About

Data visualization of Duverger's law

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published