Election Simulator
Created 11/19/2020, 6:04:57 PM; Last modified 11/21/2024, 12:12:50 AM
This is a simulator meant to simulate a hypothetical election with Ranked Choice Instant Runoff Voting. Press R to reset the election.
Table of Contents
1. How it Works
There are two main components to this simulation: Parties and Voters. Parties are predefined as the ones above, but voters are distributed randomly. Every party and voter has an X and Y position, corresponding to their position on the Political Compass. There are 1000 voters, 20% of which are given random positions on the compass, meanwhile 80% are distributed on a straight line from libleft to authright, in a way that favors the center. Party positions are defined manually. This system is divided into rounds, (seperated by the "---") and in each round voters vote for whatever candidate is closest. As soon as a majority is reached, voting ends. Each successive round, the party with the lowest amount of votes is eliminated from the race. This effectively simulates Instant Runoff Voting, as Instant Runoff is essentially multiple rounds except with ranked choice.1.1. Scandals
For each party, there is a 1/5 chance that their party commits a scandal. What this means in practical terms is that when calculating the closest party, voters will disfavor that party, and may pick a farther away party instead if it hasn't comitted a scandal.2. Parties
There are eight parties: Labor, Liberal, Social, Conservative, Libertarian, Green, Reactionary, and Communist2.1. Labor
The labor party is a moderate-left leaning party, equivalent to the Australian, New Zealander, British Labor parties and the Canadian Liberal Party. It’s signature policies and legislative decisions include universal healthcare, multilateralism, peacekeeping, gun control, legalizing same-sex marriage and carbon pricing.A known personality is New Zealand prime-minister Jacinda Ardern.
2.2. Liberal
The liberal party is a moderate-right leaning party, equivalent to the Democratic Party, the Conservative Party (UK), the Liberal Party of Australia and the Christian Democratic Union of Germany. It advocates for economic liberalism, multilateralism, religious values, limited gun control, among other factors.A known personality is German prime-minister Angela Merkel.
2.3. Social
The social party is a left leaning party, equivalent to the Workers’ Party (Brazil), Social Democratic Party of Germany, Socialist Party (France), Sinn Féin, among others. It advocates for democratic socialism, high wealth taxes, distribution of wealth, welfare programs, drug legalization, among other factors.A known personality is United States senator Bernie Sanders.
2.4. Conservative
The conservative party is a right leaning party, equivalent to the Republican Party, the Bharatiya Janata Party, UK Independence Party and Movement for France. It advocates for social conservatism, isolationism, low taxation, deregulation, free trade, privatization, among other factors.A known personality is Australian prime-minister Scott Morrison.
2.5. Libertarian
The libertarian party is a right-libertarian leaning party, equivalent to the Libertarian Party (US), the Liberal Democratic Party, KORWiN (Poland) and the Libertarian Party of Canada. It advocates for Voluntaryism, Laissez-faire capitalism, non-interventionism, fiscal conservatism, cultural liberalism, among other factors.A known personality is United States senator Rand Paul.
2.6. Green
The green party is a moderate-left leaning party, equivalent to The Greens (Germany), Europe Ecology, the Green Party of the United States, Australian Greens and the Green Party (Brazil). It advocates for general environmentalism, ecosocialism, social justice, gender equality, LGBT rights, anti-war, anti-racism, among other factors.A known personality is Canadian prime-minister Justin Trudeau.
2.7. Reactionary
The reactionary party is a far-right leaning party, equivalent to the British National Party the Australia First Party, National Rally (France) and PiS (Poland). It advocates for ultranationalism, anti-globalism, protectionism, religious fanaticism, anti-immigration, white supremacy, anti-LGBT rights, among other factors.A known personality is Polish president Andrzej Duda.
2.8. Communist
The communist party is a far-left leaning party, equivalent to the Communist Party of India, French Communist Party, Workers’ Party of Belgium, United Left (Spain) and The Left (Germany). It advocates for a big government, common ownership of the means of productions, the absence of social classes.A known personality is Cuban “president” Raúl Castro.
3. Credits
- SenorConejo - Inspired me to create this and also wrote the party descriptions.