mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-06-30 18:16:35 -07:00
8495e59a8f
Avoid executing code on module level as this prevents importing the module for testing. Especially infinite loops are evil.
Russian Roulette
In this game, you are given by the computer a revolver loaded with one bullet and five empty chambers. You spin the chamber and pull the trigger by inputting a “1,” or, if you want to quit, input a “2.” You win if you play ten times and are still alive.
Tom Adametx wrote this program while a student at Curtis Jr. High School in Sudbury, Massachusetts.
⚠️ This game includes EXPLICT references to suicide, and should not be included in most distributions, especially considering the extreme simplicity of the program.
As published in Basic Computer Games (1978):
Downloaded from Vintage Basic at http://www.vintage-basic.net/games.html
Porting Notes
(please note any difficulties or challenges in porting here)