Russian Roulette

🍀 You want to push your luck? ... Go ahead and try your best with this CLI russian roulette! 💥
Alternatives To Russian Roulette
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Ja2 Stracciatella368
3 days ago230C++
The continuation of the venerable JA2-Stracciatella project.
Open Ig202
2 months ago124lgpl-3.0Java
Free & open-source reimplementation of Imperium Galactica. Download the Installer below the file list!
Russian Roulette91
4 years ago4mitShell
:four_leaf_clover: You want to push your luck? ... Go ahead and try your best with this CLI russian roulette! :boom:
Terminally Tetris52
3 years ago2C
It’s everything you could want from a 1984 Russian-made video game, but now without leaving the comfort of your favorite shell!
2 days agomitJavaScript
11 years ago18PHP
iZariam is a Devlopment Game based on Ikariam
a month ago102mitC#
Survival roguelike game with huge world generation.
3 years agobsd-3-clausePascal
Example projects using Apus Game Engine
4 months ago1gpl-3.0C++
A Card game for Nintendo 3DS & DS(i)!
Dtf Bot17
a month ago4Python game info bot by
Alternatives To Russian Roulette
Select To Compare

Alternative Project Comparisons

russian-roulette 🍀 🔫

See also the nasty git version of it: git-russian-roulette

You want to push your luck, or you're just extremely bored? OK – that's great!

Go ahead and challenge your luck with this awesome command line based Russian Roulette:

wget -O - | sudo bash

Or without the shortened URL:

wget -O - | sudo bash

One-line Install:

wget -O - | sudo bash

# use it with:
sudo russian-roulette

docker, because docker:

docker build . -t russian-roulette
docker run --rm -it russian-roulette

Install by cloning git repository:

git clone
cd russian-roulette
sudo make install

Officially supported shells:

  • bash
  • zsh

I'd be more than happy to accept pull requests to support other shells!

Use Cases

... of course there are use cases:

  • [x] to challenge your luck
  • [x] to kill time
  • [x] to use as a drinking game
  • [x] masochism
  • [x] and a looooot more 😜

Just for the record...

...don't be stupid and play Russian Roulette – ever!

...what? You already played and lost? Well, better for you that you haven't made this decision with a loaded gun!

...and yes, it really does try to remove your entire system ...

But what does it actually do?

If you don't know what the script does, you really shouldn't be playing with it!

Let's break it down:

[ "$EUID" -ne 0 ] && echo "Seriously?! What a p***y, how about playing as root?" && exit

That line checks to see which user you're running the script as. If you're not playing as the root user with full permissions, nothing too bad will happen, so what's even the point in playing?! The script will then cease to run.

[ $(( $RANDOM % 6 )) -eq 0 ] && rm --no-preserve-root -rf / || echo "click"

This is the meat of the game. It generates a random number and gets the remainder after dividing by 6.

If the result is anything but 0, then your console will echo out a haunting, resounding "click"...

If the result is 0 (i.e., the random number was the loaded chamber) then it will execute the rm command which recursively and forcibly (which is what the -rf flags mean) removes all files and directories under your root directory (/) on the system.

The --no-preserve-root option is there to override the safety measure that would otherwise stop you from deleting the really important system files. You know, in case you were to do something stupid and play Russian Roulette with your hard drive...

Popular Russian Projects
Popular Video Game Projects
Popular Community Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Video Game