Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- print (""" ,ood8888booo,\n\
- ,od8 8bo,\n\
- ,od bo,\n\
- ,d8 8b, \n\
- ,o o, ,a8b \n\
- ,8 8,,od8 8 \n\
- 8' d8' 8b \n\
- 8 d8'ba aP' \n\
- Y, o8' aP' \n\
- Y8, YaaaP' ba \n\
- Y8o Y8' 88 \n\
- `Y8 ,8" `P \n\
- Y8o ,d8P' ba \n\
- ooood8888888P\"""' P' \n\
- ,od 8 \n\
- ,dP o88o o' \n\
- ,dP 8 8 \n\
- ,d' oo 8 ,8 \n\
- $ d$"8 8 Y Y o 8 \n\
- d d d8 od ""boooooooob d"" 8 8 \n\
- $ 8 d ood' , 8 b 8 '8 b \n\
- $ $ 8 8 d d8 `b d '8 b \n\
- $ $ 8 b Y d8 8 ,P '8 b \n\
- `$$ Yb b 8b 8b 8 8, '8 o, \n\
- `Y b 8o $$o d b b $o \n\
- 8 '$ 8$,,$" $ $o '$o$$ \n\
- $o$$P" $$o$ """)
- roleList = list(["Wolf", #1
- "Seer", #2
- "Guardian", #3
- "Angel", #4
- "Traitor", #5
- "Villager", #6
- "Villager", #7
- "Villager", #8
- "Villager", #9
- "Villager", #10
- "Ghost", #11
- "Wolf", #12
- "Cupid", #13
- "Fool", #14
- "Villager", #15
- "Villager", #16
- "Wolf", #17
- "Villager", #18
- "Villager", #19
- "Villager", #20
- "Villager", #21
- "Devil", #22
- "Wolf", #23
- "Guardian" #24
- ])
- print ("Welcome to the Python Werewolf game generator.\n")
- numPlayers = int (input ("How many people are playing? "))
- print ("\n", numPlayers, " people are playing.\n\
- Enter their names, one per line:")
- listpos = 0
- playerList = list([])
- while listpos < numPlayers:
- listpos = listpos + 1
- playerList.append(input())
- print()
- random.shuffle (playerList)
- listpos = 0
- playerfile = open("playerlist.txt", "w")
- for i in roleList:
- curstr = " %s is a %s \n" % (playerList[listpos], i)
- print (curstr,end="")
- playerfile.write(curstr)
- listpos = listpos + 1
- if listpos >= numPlayers:
- break
- playerfile.close()
- print ("\nThese have also been printed to playerlist.txt \n\
- Thanks for using the tool, hit enter to exit. :3")
- input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement