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

  1. Click the "Start Trolley" button. The trolley will begin moving slowly down the tracks.
  2. 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.
  3. Once the animation concludes, click "Go to Step 2".

Step 2: The Personal Variation

  1. Click the "Start Trolley" button. The trolley will begin moving.
  2. 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
StatusReleased
PlatformsHTML5
AuthorNeuroPhysiology
GenreEducational
AI DisclosureAI Assisted, Code, Graphics, Text

Leave a comment

Log in with itch.io to leave a comment.