The Trolley Problem
Interactive Trolley Problem Simulation
A minimalist, interactive simulation of the classic ethical thought experiment: The Trolley Problem.
This project explores both the original "Impersonal" variation (pulling a lever) and the "Personal" variation (pushing a heavy person off a bridge). It features a built-in time-pressure mechanic, forcing the user to make their moral choice while the trolley is actively moving.
🚀 Features
Two Distinct Stages:
- Step 1: The Impersonal Variation (Lever).
- Step 2: The Personal Variation (Bridge).
- Time-Pressure Mechanics: The interactive elements (Lever/Person) are locked until the simulation starts. Users have a brief time window to make a decision before the trolley passes the "point of no return."
- State Management: Fully functional "Reset" button that instantly halts all ongoing collision logic and animations, returning the simulation to a clean slate.
🕹️ How to Use
Step 1: The Impersonal Variation
- Click the "Start Trolley" button. The trolley will begin moving slowly down the tracks.
- Make a Choice:
- Do Nothing: Let the trolley continue straight, resulting in the death of 5 people.
- Pull the Lever: Quickly click the yellow lever mechanism before the trolley reaches the junction. This diverts the trolley onto the top track, saving the 5 people but resulting in the death of 1 person.
- Once the animation concludes, click "Go to Step 2".
Step 2: The Personal Variation
- Click the "Start Trolley" button. The trolley will begin moving.
- Make a Choice:
- Do Nothing: Let the trolley continue under the bridge, resulting in the death of 5 people.
- Push the Person: Quickly click the large red humanoid figure on the bridge before the trolley passes under it. This drops the heavy person onto the tracks, stopping the trolley and saving the 5 people, but resulting in the death of the 1 heavy person.
General Controls
- Reset: At any point, clicking the red "Reset" button will stop all current animations, reset all ethical choices, and take you back to the very beginning of Step 1.
| Updated | 7 days ago |
| Status | Released |
| Platforms | HTML5 |
| Author | NeuroPhysiology |
| Genre | Educational |
| AI Disclosure | AI Assisted, Code, Graphics, Text |

Leave a comment
Log in with itch.io to leave a comment.