DEV Community

Daniel Ki
Daniel Ki

Posted on

Building a Russian Roulette game where nobody, including the code, knows the outcome until the trigger fires

I wanted to make sure that even inspecting the app's state right before the shot couldn't reveal the outcome, so the bullet's chamber position stays undetermined-in-practice until the trigger animation completes.

Players choose 1 to 5 rounds for the cylinder ahead of time. Two modes are included, a spinning wheel and a spinning pistol, so groups can switch styles depending on the mood.

One rule I kept strictly: the three screens where the actual shot happens have zero ad placements, since that's exactly where fingers land in the moment.

Play Store: https://play.google.com/store/apps/details?id=com.dksequence.tableroulette

Top comments (0)