Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # word_guess_wrestling.py ZZZ
- '''
- Each code number is a clue in representing what the mystery word is
- '''
- from time import sleep as x
- from random import *
- import os
- clear=lambda: os.system('cls')
- max_level = 5000
- game_seed = randint(0,99999)
- test = int(''.join([str(ord(z)-32) for z in 'ThisIsJustForTesting'])) ###
- print "Please Wait A Few Second To Initialize..."
- seed(test)
- all_words = '''
- 11 AGENCY
- 11 AMOUNT
- 11 AUTHOR
- 11 BEHIND
- 11 BELONG
- 11 BEYOND
- 11 BOUNCE
- 11 BRANCH
- 11 BREATH
- 11 BRIDGE
- 11 BRUTAL
- 11 BURDEN
- 11 CHANGE
- 11 CHARGE
- 11 CLERGY
- 11 COLUMN
- 11 COMBAT
- 11 COMEDY
- 11 COMPEL
- 11 COUNTY
- 11 COUPLE
- 11 CUSTOM
- 11 DEPLOY
- 11 DOUBLE
- 11 FABRIC
- 11 FORBID
- 11 FORGET
- 11 FORMAL
- 11 FORMAT
- 11 GENIUS
- 11 GROUND
- 11 GUITAR
- 11 IMPACT
- 11 IMPORT
- 11 IMPOSE
- 11 INFORM
- 11 LAUNCH
- 11 LAYOUT
- 11 LEGACY
- 11 LENGTH
- 11 MARBLE
- 11 MARGIN
- 11 METHOD
- 11 MINUTE
- 11 MOBILE
- 11 MUSCLE
- 11 NEARBY
- 11 PARISH
- 11 PEANUT
- 11 PERMIT
- 11 PHRASE
- 11 PLENTY
- 11 POETRY
- 11 POLICY
- 11 PROFIT
- 11 REPLAY
- 11 SAFETY
- 11 SAMPLE
- 11 SIMPLE
- 11 SLIGHT
- 11 SODIUM
- 11 STUPID
- 11 SUBTLE
- 11 THEORY
- 11 TONGUE
- 11 UNABLE
- 11 UNFAIR
- 11 UNFOLD
- 11 UPDATE
- 15 BEAUTY
- 15 BEHALF
- 15 BRIGHT
- 15 BUDGET
- 15 CAMPUS
- 15 DEPUTY
- 15 EIGHTY
- 15 EMPLOY
- 15 ENOUGH
- 15 FAMOUS
- 15 FIGURE
- 15 FLIGHT
- 15 FOURTH
- 15 GUILTY
- 15 HUNGRY
- 15 HYBRID
- 15 MIGHTY
- 15 MODIFY
- 15 MYSELF
- 15 PLUNGE
- 15 PUBLIC
- 15 PUNISH
- 15 SHRIMP
- 15 SUBMIT
- 15 SYMBOL
- 15 TROPHY
- 27 ACTIVE
- 27 ADVICE
- 27 ADVISE
- 27 COVERS
- 27 COVERT
- 27 DIVERT
- 27 DRIVEN
- 27 INTAKE
- 27 INVADE
- 27 NATIVE
- 27 NICKEL
- 27 NOVICE
- 27 RACKET
- 27 RECKON
- 27 REVOLT
- 27 ROCKET
- 27 STREAK
- 27 STRIKE
- 27 STRIVE
- 27 STROKE
- 27 TACKLE
- 27 TOWARD
- 27 TRAVEL
- 27 VECTOR
- 27 VENDOR
- 27 VICTOR
- 27 VIOLET
- 31 BASKET
- 31 BROKEN
- 31 CAVITY
- 31 CONVEY
- 31 DONKEY
- 31 FLAVOR
- 31 GOVERN
- 31 GRAVEL
- 31 HALVES
- 31 LAVISH
- 31 MARKET
- 31 MOTIVE
- 31 PACKET
- 31 PICKET
- 31 POCKET
- 31 PROVEN
- 31 SHADOW
- 31 SHAKEN
- 31 SHRINK
- 31 SKETCH
- 31 SPOKEN
- 31 STICKY
- 31 STRUCK
- 31 SWITCH
- 31 THANKS
- 31 THRIVE
- 31 TRICKY
- 31 UNLIKE
- 31 UNLOCK
- 31 UNVEIL
- 31 VANISH
- 31 VANITY
- 31 VERBAL
- 31 VIABLE
- 31 VIRTUE
- 31 VISUAL
- 31 WEALTH
- 31 WEAPON
- 31 WISDOM
- 35 BAKERY
- 35 BUCKET
- 35 BUCKLE
- 35 EMBARK
- 35 GROWTH
- 35 HOCKEY
- 35 KNIGHT
- 35 MAKEUP
- 35 MONKEY
- 35 SHRUNK
- 35 SURVEY
- 35 TURKEY
- 35 UPLINK
- 35 UPTAKE
- 35 VERIFY
- 35 VOLUME
- 35 VOYAGE
- 35 WARMTH
- 35 WEIGHT
- 35 WORTHY
- 52 CAJOLE
- 52 CORTEX
- 52 EXOTIC
- 52 INJECT
- 52 JOSTLE
- 52 REJOIN
- 55 WHISKY
- 56 ADJUST
- 56 BOXCAR
- 56 CLIMAX
- 56 CLIQUE
- 56 EQUALS
- 56 EXHORT
- 56 EXODUS
- 56 EXPAND
- 56 EXPORT
- 56 FIXATE
- 56 ICEBOX
- 56 INJURE
- 56 JARGON
- 56 JINGLE
- 56 JUNIOR
- 56 LIQUOR
- 56 MATRIX
- 56 OBJECT
- 56 QUAINT
- 56 QUOTAS
- 56 QUOTES
- 56 RISQUE
- 56 SQUARE
- 56 SQUEAL
- 56 SQUINT
- 56 SYNTAX
- 56 TORQUE
- 56 TUXEDO
- 60 DUPLEX
- 60 EQUITY
- 60 EXPIRY
- 60 HATBOX
- 60 INFLUX
- 60 INJURY
- 60 JOYFUL
- 60 JUMBLE
- 60 JUNGLE
- 60 OPAQUE
- 60 OXYGEN
- 60 PIQUET
- 60 PLAQUE
- 60 PREFIX
- 60 QUEASY
- 60 QUENCH
- 60 REFLUX
- 60 SPHINX
- 60 SQUIRM
- 76 CERVIX
- 76 CONVEX
- 76 JACKET
- 76 JOVIAL
- 76 VORTEX
- 80 JIGSAW
- 80 JOCKEY
- 80 SQUEAK
- 252 LIZARD
- 256 BRONZE
- 256 FROZEN
- 256 SCHIZO
- 256 SLEAZY
- 256 SPRITZ
- 256 ZENITH
- 260 FRENZY
- 260 GAZEBO
- 260 UPSIZE
- 260 ZEPHYR
- 260 ZOMBIE
- 276 WIZARD
- 305 QUARTZ
- '''.strip()
- words = []
- for word in all_words.splitlines():
- if ' ' in word:
- words.append(word.split(' ')[-1])
- all_words = '\n'.join(words)
- all_codes = dict([(k,[]) for k in words])
- L = len(words)
- for z in range(max_level):
- codes = range(L)
- shuffle(codes)
- for word in words:
- all_codes[word].append(codes.pop()+(z*L))
- Lz = len(str(z*L))
- # list of other 6 letter all_words I've excluded from this game...
- '''
- 3 ACTION
- 3 CANDLE
- 3 CASINO
- 3 CLIENT
- 3 CLOSET
- 3 CREDIT
- 3 DENIAL
- 3 DETAIL
- 3 DIRECT
- 3 DONATE
- 3 EDITOR
- 3 INSECT
- 3 INSERT
- 3 ISLAND
- 3 LISTEN
- 3 LOCATE
- 3 NOTICE
- 3 REASON
- 3 RENTAL
- 3 RETAIL
- 3 RETAIN
- 3 SECOND
- 3 SECTOR
- 3 SENIOR
- 3 SILENT
- 3 SOCIAL
- 3 STANCE
- 3 STRAIN
- 7 ADMIRE
- 7 ALMOST
- 7 AROUND
- 7 ASPECT
- 7 BREAST
- 7 CARBON
- 7 CARPET
- 7 COURSE
- 7 COUSIN
- 7 CRUISE
- 7 DEBRIS
- 7 DEPART
- 7 DEPICT
- 7 DESIGN
- 7 DOMAIN
- 7 ETHICS
- 7 ETHNIC
- 7 FACTOR
- 7 FISCAL
- 7 FRIEND
- 7 GARDEN
- 7 GARLIC
- 7 GLANCE
- 7 GOLDEN
- 7 HANDLE
- 7 IGNORE
- 7 INCOME
- 7 INMATE
- 7 ITSELF
- 7 MARINE
- 7 MENTAL
- 7 MENTOR
- 7 MODERN
- 7 NATURE
- 7 NORMAL
- 7 OBTAIN
- 7 ORANGE
- 7 OTHERS
- 7 PARENT
- 7 PATROL
- 7 PATRON
- 7 PENCIL
- 7 PERIOD
- 7 PERSON
- 7 PISTOL
- 7 PLANET
- 7 POLICE
- 7 PRAISE
- 7 PRISON
- 7 RANDOM
- 7 REGAIN
- 7 REGION
- 7 REMAIN
- 7 REMIND
- 7 RESIGN
- 7 RESULT
- 7 RITUAL
- 7 SALMON
- 7 SCREAM
- 7 SCRIPT
- 7 SEARCH
- 7 SELDOM
- 7 SIGNAL
- 7 SINGLE
- 7 SOFTEN
- 7 SOURCE
- 7 SPREAD
- 7 STABLE
- 7 STEADY
- 7 STREAM
- 7 STRONG
- 7 STUDIO
- 7 THREAD
- 7 TRAGIC
- 7 TRIBAL
- 100 SQUAWK
- '''
- all_finishing_moves = '''
- ABDOMINAL STRETCH
- ANKLE LOCK
- ARM TRIANGLE CHOKE
- BEAR HUG
- CAMEL CLUTCH
- COBRA CLUTCH
- CROSS ARMBAR
- FIGURE FOUR LEG LOCK
- FLYING DOWNWARD ELBOW
- FRONT CHINLOCK
- FULL NELSON CHOKE
- GORY SPECIAL
- HALF NELSON CHOKE
- HEADLOCK
- HEADSCISSORS ARMBAR
- LEG LOCK
- NELSON HOLD
- PILEDRIVER
- REVERSE CHINLOCK
- STUNNER
- THE SLEEPER HOLD
- TRIANGLE CHOKE
- '''.splitlines()
- all_regular_moves = '''
- Arm Bar
- Axe Kick
- Backbreaker
- Boston Crab
- Chest Slap
- Chinlock
- Chokeslam
- Clothesline
- Double Punch
- Elbow To The Chest
- Elbow Uppercut
- Flying Knee
- Grab And Knee
- Guillotine Choke
- Head Butt
- Heel Kick
- Horse Kick
- Jumping Double Spin Kick
- Kick Flip
- Knee
- Left Hook
- Leg Drop
- Lift Up And Throw Down
- Low Kick
- Pimp Slap
- Right Hook
- Roundhouse
- Short Jump Kick
- Shoulder Throw
- Side Kick
- Spinning Jumpkick
- Spinning Punch
- Spinning Step Kick
- Straight Punch
- Suplex
- Sweep Kick
- Sweep Kick To The Head
- Swoop Triple Kick
- Two Leg Jump Kick
- Uppercut
- Wrist Lock
- '''.splitlines()
- all_wrestlers = '''
- Abe "The True American" Ruthers
- Adam "The Flying Machine" Myweigh
- Al "The Drunken Master" Koholic
- Andy "The Knock Out" Wyneriss
- Arthur "The Crippler" Wrightus
- Billy "The Billionaire" Ventura
- Bobby "The Big Body" Barrel
- Bowen "The Indian Chief" Aero
- Cal "The Genius" Quelait
- Cliff "The Mountain Man" Angora
- Cole "The SubZero" Dasighes
- Colin "The Doctor" Syk
- Cy "The Robot" Burnett
- Dane "The Dancer" Jeross
- Daryl "The Darkness" McKnight
- Dennis "The Mouth" Trei
- Dez "The CopyCat" Parrot
- Doug "The Grim Reaper" Graives
- Ellis "The Trippy" Dee
- Eric "The Savage" Shawn
- Gary "The Singer" Oakie
- Gil "The Convict" Tiazel
- Guido "The Python" Kneatomudge
- Hal "The Evil" Elujah
- Harry "The Barber" Baldwin
- Hayden "The Hunter" Zeke
- Herbie "The Health Fanatic" Voor
- Ike "The Mime" Intel
- Jack "The Rude" Miehawf
- Jacques "The Jack Hammer" Hampton
- Jason "The Sensation"
- Jim "The Acrobatic" Nest
- John "The FBI" Smith
- Justin "The Psycho" Saiyn
- Karmen "The Hardcore" Gogh
- Ken "The Mister Nice Guy" Hypleez
- Kyle "The Librarian" Phaebett
- Lou (The Sneaky) Brikint
- Major Payne
- Matt "The Sandman" Rus
- Michael "The Maestro" Toris
- Mike "The Beast" Rodge
- Niel "The King" Downe
- Noah "The Cross-Eyed" Vale
- Ollie "The Superstar" Woods
- Ooga "The Neanderthal"
- Phil "The Lover-Boy" Hureite
- Phil "The Marine" Aisheau
- Rex "Mister Demolisher" Holmes
- Richard "The Wizard"
- Rick "The Cowboy" O'Shea
- Ricky "The Hurricane"
- Sum-Yen "A La Creme" Gui
- Stan "The Gorilla" Da'Phukbak
- Teddy "The Killer Bear" Huxley
- The Killer Clown
- The Legendary
- Tyrone "The Typhoon"
- Warden "The Mad Man"
- '''.splitlines()
- pts = { 'E': 1,
- 'A': 2,
- 'I': 3,
- 'S': 4,
- 'N': 5,
- 'T': 6,
- 'R': 7,
- 'O': 8,
- 'L': 9,
- 'C': 10,
- 'D': 11,
- 'U': 12,
- 'M': 13,
- 'P': 14,
- 'Y': 15,
- 'G': 16,
- 'H': 17,
- 'B': 18,
- 'F': 19,
- 'V': 50,
- 'K': 50,
- 'W': 50,
- 'J': 100,
- 'X': 100,
- 'Q': 100,
- 'Z': 250}
- '''
- peak_score = []
- for word in all_words:
- p = []
- for s in word:
- p.append(pts[s])
- p.sort()
- p = sum(p[3:])
- peak_score.append([p,word])
- peak_score.sort()
- for z in peak_score: print z[0],z[1]
- '''
- def msg(outcome='+++ Work In Progress +++'):
- clear()
- tiles = ' '.join(cue)
- print show.format(
- rounds=rounds,
- score=score,
- opponent=opponent,
- outcome=outcome,
- letters=letters,
- tiles=tiles,
- level=current_level,
- code=str(code).zfill(Lz),
- chances=chances)
- x(1)
- if '*' in outcome:
- raw_input('\n\n\tPress Enter To Continue\n')
- play = ''
- if 1:
- show = '''
- To Restart: Blank Entry
- To Quit: Enter 'QQ'
- Solve {rounds} Words To Reach The Final Score
- Current Score: {score}
- Rounds Remaining: {chances}
- Level: {level} (Multiplier)
- Code Number: {code}
- ===========
- >>> {tiles} <<<
- ===========
- Attacking: {opponent}
- Outcome: {outcome}
- [{letters}]
- '''
- ask_level = '''
- "Wrestle To Guess The Word"
- Auto Select Level: {current_level}
- Of 1 to {max_level}... right below, you may choose the level of difficulty in which makes
- for multiplying the score each round and how many code numbers represents each word.
- '''
- def rnd(z):
- shuffle(z)
- return z[0]
- def exit():
- return 'qq' in play.lower()
- all_words = [z.splitlines() for z in all_words.split('\n\n')]
- letters = list(pts)
- all_letters = ''.join(sorted(letters))
- rounds = len(all_words)
- current_level = 3
- seed(game_seed)
- while 'qq*' not in play.lower():
- clear()
- print ask_level.format(
- current_level=current_level,
- max_level=max_level)
- level=raw_input('\tEnter Level Here: ').strip()
- try:
- level = int(level)
- except:
- level = current_level
- if not (0 < level < max_level):
- level = current_level
- current_level = level
- shuffle(all_words)
- shuffle(all_wrestlers)
- wrestlers = all_wrestlers # temporary solution
- words = [rnd(z) for z in all_words]
- score = 0
- for word in words:
- Xword = word
- letters = all_letters
- chances = 4
- opponent = wrestlers.pop() # ZZZ for random list of fighters
- cue = '.'*6
- regular_moves = all_regular_moves
- finishing_moves = all_finishing_moves
- shuffle(all_regular_moves)
- shuffle(all_finishing_moves)
- t = all_codes[word][:current_level]
- shuffle(t)
- code = t[-1]
- msg()
- while 1:
- s = 'To Your Advantage -- '
- play=raw_input('\tEnter Available Letter Here: ').strip()
- if exit():
- print('\n\n\t*** Game Cancelled ***')
- play = 'qq*'
- x(3)
- break
- elif not play:
- ans=raw_input("\n\n\t*** To Confirm Restart... Enter 'Y' ***")
- if 'y' in ans.lower():
- play = 'qq'
- clear()
- print('\n\t*** Game Restarting As Requested... ***')
- x(3)
- break
- else:
- msg()
- else:
- play = play[0].upper()
- if play in letters:
- if play in list(Xword):
- L = letters.count('.')
- if L < 7:
- score += (pts[play]*(6-L)*current_level)
- cue = list(cue)
- cue[word.index(play)] = play
- cue = ''.join(list(cue))
- Xword = Xword.replace(play,'.')
- msg(s+regular_moves.pop())
- else:
- chances -= 1
- s = 'At A Disadvantage -- '
- if not chances:
- msg(s+finishing_moves.pop()+' !!!')
- else:
- msg(s+regular_moves.pop())
- letters = letters.replace(play,'.')
- if Xword.count('.') == 6:
- msg(s+finishing_moves.pop())
- x(3)
- msg("*** 1... 2... 3.... Word Solved, You Won That Match! ***")
- x(3)
- break
- elif not chances:
- x(3)
- msg("*** 1... 2... 3... You Lost That Match! ***")
- x(3)
- break
- else:
- msg('\n\t*** Invalid Entry ***')
- x(2)
- msg()
- if exit(): break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement