Use docstrings

This commit is contained in:
Martin Thoma
2022-04-02 07:58:37 +02:00
parent c500424956
commit 4b3b991273
12 changed files with 268 additions and 323 deletions

View File

@@ -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