This is a fun game based on the famous the trolley problem\dillema.
The trolley problem is a classic ethical thought experiment that presents a moral dilemma involving a runaway trolley headed towards a group of people.
The participant must decide whether to take action that will divert the trolley, potentially sacrificing one person to save many, or do nothing and allow the trolley to harm multiple people.
Some examples include:
A: Pull a lever to divert the trolley onto a track where it will hit one person you know.
B: Do nothing, allowing the trolley to hit ten people on the current track.
A: Pull a lever to divert the trolley onto a track where it will hit two terminally ill people.
B: Do nothing, allowing allow the trolley kill one healthry person.
During the annual crazy GeekCon 2023 Hackathon taking place September 21-23st @ Sdot-Yam in ISrael our team has developed this game with some sdditions:
- Part of the dillemas were broght in from speaking to ChatGPT
- To illustrate some dillemas, we generated images using the Stable Diffusion engine.
- The game has connected a real toy train and controlled its track changes.
The team members were:
- Ziv Barcesat
- Tal Raindel
- Michael Lev-ari Layosh
- Yuval Raindel
- Guy Sheffer
The game is written in python that utilizes the speedy NiceGUI library to create a web UI. The communication with the hardware is done using serial interface.
To Install (assuming you have installed python on your PC): pip install -r requirements.txt
To Run: python3 app_nicegui.py
(This will auto load the game in the web browser at: 127.0.0.1:5000)
For this project we purchased a model train toy from amazon.
We designed and 3D printed mounting for 9g servo motors to fit on the levers to change the routes and for a bumper that stops the train.
In order to do it we took an Arduino Uno controller board and connected the servos to it.
The code is written and compiled using the platform.io development platform.