Jump to content

Guess Who Will Reply Next?


Flixxbeatz

Recommended Posts

#syntax error : Overfloater is not valid syntax

guess.py

working...

success, new guess is : "Starwhip"

come to think about I might actually make that script to freshen up on me python :)

Yes, and here you go :P


import random

memberGuessList = [
"Overfloater","Starwhip","Nemrav","Mrrpamplemousse","Red Iron Crown",
"Vexx32","Endersmens"] ##Can and should be extended for actual program

def guessMember(memberGuessList):
toGuess = random.randint(0,len(memberGuessList)-1)
return memberGuessList[toGuess]

while True:
print(guessMember(memberGuessList))
input() ##Wait for keypress

Eh, Red Iron Crown.

EDIT:

Better list:


memberGuessList = [
"Overfloater","Starwhip","Nemrav","Mrrpamplemousse","Red Iron Crown",
"Vexx32","Endersmens","LABHOUSE","MrMuddyBoots","General Rarity",
"The Destroyer","zekes","worir4","Lhathron the Elf","cantab","r4pt0r",
"Fyre Flare","Lundmunchkins","Megalodon 720","Frozen_Heart","aceassasin"]

Edited by Starwhip
Never actually guessed, whoops.
Link to comment
Share on other sites

Yes, and here you go :P -snip-

cmon, I was meant to do it ;( now I will forever be tempted to look at yours..

oh well red iron crown

edit: my version

import random
people = ["Overfloater","Starwhip","Nemrav","Mrrpamplemousse","Red Iron Crown",
"Vexx32","Endersmens","LABHOUSE","MrMuddyBoots","General Rarity",
"The Destroyer","zekes","worir4","Lhathron the Elf","cantab","r4pt0r",
"Fyre Flare","Lundmunchkins","Megalodon 720","Frozen_Heart","aceassasin","KasperVLD", "new person"]
amount = len(people)-1
picked = random.randint(0,amount)
guess = people[picked]
print(guess)
input("press enter to exit, be sure to copy/paste before you leave")

Edited by Nemrav
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...