The Worlds of Marshall B. McCloude

The Worlds of Marshall B. McCloude

Code Roulette

Digital Russian Roulette with remote code execution for the loser.

Marshall B. McCloude's avatar
Marshall B. McCloude
Feb 03, 2026
∙ Paid

It’s obvious you shouldn’t play Russian Roulette in real life. Perhaps in light of that is why so many variations of the game have sprouted up across movies, tv shows, and games. But, through those existing digital mediums there’s something lacking. A certain air is absent from those representations.

It is the risk.

And we could dive into the concepts behind, “risk making the reward,” but that’s for another time. What we’re checking out today is how I brought digital risk to the networked table.

Code Roulette is a terminal-based, graphical game of Russian Roulette where you compete against another player to see who will have a computer program, selected by their opponent, run on their computer. That is to say, you can play a 2D game of Russian Roulette where the opponent gets to execute some arbitrary code on your computer if you lose.

Check out the code on GitHub.

Or keep reading to learn more about the story of how this came to be.

User's avatar

Continue reading this post for free, courtesy of Marshall B. McCloude.

Or purchase a paid subscription.
© 2026 Marshall B. McCloude · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture