You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
484 B
Python

#This is a script that writes rules and instructions
#First it sets variables
import random
games = ["backgammon", "pokemon", "war"]
object = ["teammate", "card", "turn", "place", "board", "dice", "nice", "backgammon"]
verb = ["choose", "pick", "give", "burn", "cut"]
#Then it writes a title
print("How to play " + random.choice(games))
#Then it loops through instructions
for i in range(6):
print("Rule " + str(i+1) + ": "+ random.choice(verb) + " a " + random.choice(object))