Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

rankChoiceVoting

Public visualization

Viewing a saved revision (read-only)

11505ee3e5294faf8dfc2bea11699850

rankChoiceVoting

0 stars0🌍 Public
Jjjacobatandover
Last edited Jul 8, 2021
Created on Jul 7, 2021
Forked from HTML Starter

This example simulates ranked-choice voting for four candidates across a population of 100 million fictional voters, using JavaScript to generate random preference permutations. It demonstrates the instant-runoff process by tallying first-choice votes, eliminating the lowest-scoring candidate, redistributing those ballots to their next preferred choice, and repeating until a majority winner emerges. The console output shows the round-by-round counts and declares the final winner, illustrating how the algorithm handles vote transfers and majority thresholds.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.