Skip to content

joshuaPurushothaman/Simulating-Alternate-Voting-Systems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simulating Alternate Voting Systems, inspired by Primer

Simulations of various voting systems, including:

  • Plurality

Based on Primer's video on simulating alternate voting systems shown here.

Installation

If you want to use a virtual environment, activate it first.

Run this command to install the dependencies:

pip install numpy matplotlib names

Usage

If you're using VSCode, you can run the simulation by pressing F5. If you're using the command line, you can run the simulation by running python3 main.py.

To change the simulation parameters, edit config.py.

  • The comments in that file should be self-explanatory.

About

Based on Primer's video on simulating alternate voting systems https://youtu.be/yhO6jfHPFQU.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages