A terminal-based Python implementation of Russian Roulette. The game simulates a six-chamber revolver, complete with an animated cylinder spin and a permanent “death state.” Once the player dies, a hidden death marker file is written to the system’s configuration directory, preventing further gameplay unless manually deleted.
- 1-in-6 randomized chamber (true Russian Roulette simulation)
- Permanent death tracked via a hidden
.death_markerfile - Animated ASCII spinning sequence
- Cross-platform support:
- Windows:
%LOCALAPPDATA%\.roulette\.death_marker - Linux/macOS:
~/.config/roulette/.death_marker
- Windows:
- Infinite play until a fatal chamber is hit
- No external dependencies
When you die, the game writes:
Windows %LOCALAPPDATA%.roulette.death_marker
Linux / macOS ~/.config/roulette/.death_marker
If this file exists, the game refuses to run.
Delete it manually to reset your status.
git clone https://github.com/ApologistX/Russian-Roulette
cd russian-roulette
python3 roulette.py-
At launch, the game checks for the
.death_markerfile.- If it exists, the game immediately exits and cannot be played again.
-
Press ENTER to spin the cylinder.
An ASCII animation sequence simulates the revolver spinning. -
Press ENTER to pull the trigger.
-
If the chamber is empty, you survive the round and may continue playing.
-
If the chamber contains the bullet, you die permanently.
The game writes.death_markerto your system, preventing all future play until manually deleted.
To reset your death state and play again, manually delete the .death_marker file created when you die.
Linux / macOS
rm ~/.config/roulette/.death_markerWindows (PowerShell)
Remove-Item "$env:LOCALAPPDATA\.roulette\.death_marker"