mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-01-05 09:39:32 -08:00
Use docstrings
This commit is contained in:
@@ -1,19 +1,17 @@
|
||||
########################################################
|
||||
#
|
||||
# Russian Roulette
|
||||
#
|
||||
# From Basic Computer Games (1978)
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
########################################################
|
||||
"""
|
||||
Russian Roulette
|
||||
|
||||
From Basic Computer Games (1978)
|
||||
|
||||
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.
|
||||
"""
|
||||
|
||||
|
||||
from random import random
|
||||
|
||||
Reference in New Issue
Block a user