Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 6_letter_words_pairs_MLA_test.py
- # I can't get over that my unique pattern recognizer can determine the order all those words are in
- # with less than 50 bytes added
- import random
- import webbrowser
- import tempfile
- try:
- # Python2
- from Tkinter import *
- from urllib2 import urlopen
- except ImportError:
- # Python3
- from tkinter import *
- from urllib.request import urlopen
- srcfilename=tempfile.mktemp(".txt", "demo_")
- WORDS = '''
- empire
- turnip
- dining
- fellow
- tuxedo
- worthy
- tangle
- height
- leader
- spiral
- clutch
- asleep
- choose
- bridge
- presto
- mascot
- planet
- pallet
- cornea
- prefer
- cosmic
- league
- became
- intent
- safely
- settle
- salute
- potato
- attend
- clinch
- umpire
- critic
- breath
- inform
- unwrap
- decent
- soften
- orchid
- entity
- weasel
- invite
- neuron
- statue
- ground
- ethics
- rating
- mobile
- asylum
- rubber
- avatar
- loonie
- timing
- sheath
- perish
- remove
- highly
- marker
- barrow
- better
- static
- answer
- lethal
- closer
- regret
- legacy
- stable
- coocoo
- thanks
- toggle
- pledge
- convey
- tundra
- subdue
- banish
- nougat
- caught
- teacup
- retain
- offset
- rustic
- parade
- antler
- spider
- outage
- rodent
- taught
- driver
- anyhow
- safety
- stanza
- ballet
- horror
- addict
- honest
- phobia
- mutual
- picnic
- decide
- strike
- pastel
- ponder
- tablet
- brutal
- walnut
- ripple
- action
- occult
- shorts
- memory
- hungry
- simple
- reader
- shovel
- refuge
- bubble
- stroke
- warden
- agency
- doctor
- windup
- salary
- lambda
- myself
- smooth
- author
- proven
- direct
- relate
- garage
- stylus
- babble
- pulsar
- affirm
- strict
- cinema
- marque
- podium
- baffle
- caress
- curfew
- stripe
- outlaw
- before
- abrupt
- bronze
- cashew
- depict
- tremor
- cocoon
- bounce
- glance
- threat
- nutmeg
- select
- pocket
- bridle
- stooge
- whacko
- employ
- metric
- absent
- abacus
- oxygen
- campus
- obtain
- forest
- larynx
- modest
- united
- ordeal
- survey
- wasabi
- thrift
- actual
- finish
- branch
- siphon
- rather
- sedate
- cheque
- poncho
- island
- barber
- blotch
- noodle
- casual
- patent
- script
- lawful
- verify
- outcry
- agenda
- coerce
- fungus
- whisky
- should
- engine
- screen
- velvet
- enable
- valley
- export
- splash
- tattoo
- strong
- reward
- oppose
- nephew
- uphold
- meteor
- amoeba
- magnet
- mayhem
- slogan
- fourth
- polish
- zephyr
- member
- scroll
- aspect
- resume
- bonobo
- sudden
- senile
- system
- sprawl
- bruise
- suburb
- snooze
- libido
- streak
- insect
- couple
- tidbit
- retire
- zipper
- intact
- coding
- plaque
- leeway
- rescue
- skyway
- mostly
- fiscal
- starch
- tycoon
- single
- lagend
- pamper
- import
- tiptoe
- expand
- recent
- diesel
- mishap
- compel
- figure
- mutiny
- credit
- spread
- annual
- detect
- rascal
- benign
- middle
- outlet
- marine
- deacon
- market
- viable
- dangle
- orange
- toilet
- batter
- pigsty
- shmear
- clever
- tinsel
- locate
- mirror
- almost
- adjust
- rotate
- bitmap
- banana
- sprout
- tumble
- double
- combat
- choice
- shrink
- follow
- bonsai
- makeup
- farmer
- debris
- bamboo
- muzzle
- temper
- nature
- cobalt
- upward
- unless
- future
- assume
- utopia
- sneeze
- senate
- unique
- create
- coming
- airway
- symbol
- center
- origin
- pickle
- access
- indeed
- basket
- beetle
- uptown
- novice
- target
- cactus
- vision
- mainly
- impose
- parsec
- status
- skylit
- seesaw
- litter
- wonder
- inmate
- rabbit
- budget
- cobble
- attack
- global
- either
- quasar
- upheld
- online
- payout
- sought
- depend
- vanish
- zigzag
- estate
- utmost
- assess
- voting
- beware
- bishop
- nuance
- latter
- ignore
- squawk
- nozzle
- squire
- outgun
- marble
- rotors
- sensei
- minion
- remain
- attire
- lagoon
- itself
- outbid
- allude
- plenty
- weight
- anyway
- canyon
- upload
- meanly
- seldom
- sultry
- overdo
- saliva
- golden
- regime
- intend
- mildew
- convoy
- string
- belief
- python
- appeal
- techie
- number
- superb
- motion
- outrun
- terror
- clothe
- bobcat
- search
- broker
- muscle
- motive
- maglev
- chorus
- visual
- repair
- expert
- ninety
- clumsy
- tricky
- excuse
- defeat
- borrow
- policy
- openly
- cursor
- memoir
- heaven
- vulgar
- aghast
- ballot
- formal
- always
- tinker
- degree
- woofer
- trauma
- ransom
- profit
- mortal
- bullet
- pigpen
- chance
- bother
- payday
- lector
- donate
- wrench
- school
- accept
- crayon
- summit
- coyote
- amount
- primal
- rookie
- ballad
- broken
- costly
- strobe
- snitch
- maniac
- rocket
- raffle
- cipher
- covert
- qwerty
- purple
- cotton
- tampon
- client
- sprint
- region
- turret
- scared
- deeply
- turtle
- player
- needle
- cymbal
- spares
- active
- castle
- spring
- canopy
- regard
- mirage
- length
- tamper
- bestow
- pistol
- extent
- resort
- divide
- teapot
- really
- preach
- talent
- skidoo
- remark
- border
- legion
- allure
- become
- butter
- occupy
- invade
- looney
- vector
- shield
- pronto
- outbox
- social
- solely
- plasma
- dialog
- surely
- queasy
- cheese
- nickel
- radian
- wander
- depart
- asthma
- expect
- wobble
- savage
- turkey
- quarts
- circus
- admire
- unfold
- realms
- midday
- atomic
- canine
- format
- normal
- stupid
- assert
- others
- tictac
- censor
- morbid
- mitten
- treble
- danger
- flower
- plural
- ocular
- manner
- digest
- desert
- series
- supper
- squish
- powwow
- hardly
- widely
- chrome
- sponge
- lounge
- tackle
- thrill
- affect
- flight
- waffle
- appear
- affair
- polite
- winner
- sickle
- mingle
- dazzle
- outwit
- remote
- remind
- thrive
- bypass
- worker
- uplift
- garlic
- cosign
- handle
- random
- coffee
- tartar
- trophy
- adieus
- hunger
- fabric
- billow
- endure
- banker
- father
- bandit
- sunbow
- public
- bundle
- notion
- cringe
- narrow
- pickup
- naysay
- thrash
- sample
- assist
- equity
- letter
- crypto
- minuet
- laguna
- device
- crisis
- prompt
- satire
- report
- object
- mental
- pepper
- mallet
- method
- stasis
- murder
- morsel
- season
- octane
- advice
- tennis
- sewage
- tarmac
- salmon
- melody
- lotion
- eleven
- propel
- pirana
- toucan
- bottom
- detain
- option
- listen
- advise
- aboard
- rumble
- gender
- laptop
- lookup
- slight
- injure
- crunch
- senior
- liable
- carpet
- monkey
- within
- micron
- albeit
- anyone
- offkey
- warmth
- morale
- bonnet
- ethnic
- sunlit
- corral
- behalf
- bureau
- uproar
- pseudo
- secure
- career
- toward
- ambush
- copter
- ordain
- female
- bionic
- riddle
- people
- sprite
- vacuum
- corset
- punish
- artist
- saddle
- muffin
- corpus
- comply
- tenpin
- almond
- arrest
- urinal
- galaxy
- arcade
- lesson
- trance
- pillar
- sculpt
- native
- tomato
- wallop
- orphan
- possum
- alumni
- upbeat
- praise
- marvel
- exotic
- nausea
- decade
- squint
- reason
- parole
- wisdom
- mother
- gentle
- poetry
- deputy
- pirate
- loiter
- petite
- cancel
- church
- barely
- differ
- tryout
- hazard
- lockup
- shrimp
- eating
- barter
- jungle
- bitter
- blonde
- across
- ammino
- poster
- abroad
- circle
- weaken
- cattle
- gifted
- unlike
- parish
- sunray
- tenrec
- margin
- carbon
- canary
- velcro
- wealth
- debate
- singer
- beside
- square
- mohawk
- picket
- county
- acidic
- sister
- parrot
- risque
- biopsy
- myriad
- clique
- pardon
- mature
- onward
- permit
- review
- torque
- pigout
- obtuse
- autumn
- assign
- legend
- happen
- shimmy
- stroll
- mammal
- candle
- modify
- unable
- little
- lawyer
- prison
- corpse
- deluxe
- tactic
- pellet
- cliche
- thread
- cosine
- battle
- severe
- shadow
- temple
- cancan
- ruling
- squirm
- uphill
- voyage
- pimple
- vamose
- lizard
- stigma
- assail
- hunter
- sphere
- candor
- output
- router
- defend
- upmost
- sleeve
- insert
- famous
- peanut
- cradle
- strait
- derive
- outfit
- ribbon
- bikini
- eighth
- newsie
- render
- cowboy
- breeze
- avenue
- studio
- betray
- desire
- strive
- smoosh
- beyond
- silver
- recipe
- define
- lately
- chubby
- deejay
- silent
- toupee
- suffer
- beauty
- vortex
- course
- timber
- corner
- misery
- pillow
- nebula
- tender
- meadow
- treaty
- unfair
- simply
- burial
- secret
- resign
- family
- proton
- candid
- former
- twelve
- yellow
- upwind
- speech
- preset
- slalom
- typing
- accuse
- ripoff
- zodiac
- capita
- emerge
- nugget
- divine
- burger
- radius
- dancer
- stride
- guilty
- invest
- ritual
- outfox
- strain
- virtue
- manage
- theist
- beacon
- spleen
- wrecks
- attach
- armpit
- poppet
- fierce
- wallet
- casino
- flying
- rustle
- quaint
- summon
- colony
- damage
- spruce
- scotch
- dealer
- staple
- tongue
- freeze
- swoosh
- manual
- common
- bottle
- infant
- charge
- omelet
- nearly
- sliver
- clinic
- twitch
- hockey
- volume
- reduce
- airbag
- palace
- parcel
- nectar
- scheme
- shower
- evolve
- catsup
- neural
- invent
- silica
- psyche
- theory
- oblong
- switch
- supply
- quiche
- sacred
- verbal
- coward
- pretty
- warmup
- expose
- insist
- camera
- insure
- master
- growth
- gather
- struck
- though
- yogurt
- milage
- bright
- income
- autism
- casket
- sandal
- resist
- impact
- sunset
- walrus
- health
- forget
- mettle
- medium
- census
- pigeon
- parent
- cement
- pebble
- suffix
- patron
- wooden
- pierce
- cougar
- vacant
- cruise
- adrift
- submit
- tickle
- soothe
- faster
- writer
- coarse
- assure
- devote
- nobody
- mutant
- puppet
- sitcom
- linear
- versus
- throat
- carrot
- octave
- catnap
- cousin
- deploy
- patrol
- typist
- swivel
- mantra
- copper
- street
- barrel
- afraid
- minute
- pencil
- demand
- finger
- liquid
- tyrant
- pursue
- aerial
- sleigh
- retail
- rhythm
- analog
- shriek
- killer
- lavish
- record
- reform
- radish
- sphinx
- afford
- portal
- drawer
- ledger
- napkin
- custom
- behave
- detail
- vessel
- seller
- mortar
- mayday
- partly
- commit
- triple
- levity
- squeal
- climax
- sector
- dinner
- filter
- factor
- rarely
- notice
- booboo
- coddle
- friend
- swerve
- nimble
- prince
- chosen
- ticket
- sensor
- pizazz
- arrive
- inside
- helmet
- immune
- burden
- modern
- bronco
- boggle
- engage
- realty
- collar
- buffet
- sizzle
- refuse
- steady
- stance
- please
- frozen
- voodoo
- cavern
- regain
- absorb
- easily
- thirty
- brunch
- robust
- bleach
- convex
- savant
- pompom
- thwart
- person
- spinal
- midway
- puzzle
- trivia
- mantle
- napalm
- energy
- airbus
- bloody
- enroll
- column
- tavern
- mangle
- return
- crater
- opaque
- bonbon
- pickax
- browse
- button
- stereo
- webcam
- mutate
- newbie
- piglet
- prayer
- police
- exceed
- teepee
- junior
- wreath
- scarce
- chalet
- sulfur
- gently
- cyborg
- design
- belong
- phrase
- ladder
- change
- stitch
- mystic
- thrust
- sublet
- effort
- lovely
- touche
- tunnel
- subway
- nitwit
- proper
- starts
- serial
- reject
- midair
- powder
- travel
- guitar
- office
- comedy
- attain
- soccer
- living
- window
- entire
- squeak
- launch
- scruff
- beagle
- summer
- source
- puddle
- fairly
- prefix
- museum
- except
- luxury
- spritz
- rusted
- sketch
- moment
- spouse
- canvas
- garden
- mumble
- whoosh
- beggar
- scream
- violet
- flavor
- rattle
- repeat
- radial
- violin
- misfit
- snivel
- useful
- wizard
- bucket
- domain
- weapon
- second
- recall
- diaper
- animal
- quartz
- stream
- editor
- photon
- squirt
- vandal
- weekly
- psycho
- result
- cookie
- boxcar
- lonely
- strife
- adsorb
- closet
- wallow
- martyr
- celery
- sundae
- mentor
- coupon
- scrape
- viewer
- period
- nation
- madame
- slowly
- around
- tragic
- smudge
- paddle
- parody
- extend
- lunacy
- mellow
- oddity
- planar
- catnip
- injury
- enough
- squash
- sodium
- jacket
- winter
- denial
- abound
- tissue
- starve
- poison
- larvae
- locale
- damsel
- rental
- subtle
- upkeep
- mutter
- update
- thrown
- '''.strip().splitlines()
- # random.shuffle(WORDS)
- ttt = []
- c = 1
- while 1:
- sss = WORDS[:]
- random.shuffle(sss)
- while len(sss) > 1:
- a,b = sss.pop(),sss.pop()
- yn = 0
- if WORDS.index(a) > WORDS.index(b):
- yn = 1
- if (yn, a+b, '') not in ttt:
- ttt += [str([yn, a+b, ''])]
- # print ttt[-1]
- c += 1
- if c > 120000:
- break
- random.shuffle(ttt)
- ttt = ['# yn -- combos -- at'] + ttt
- urls='\n'.join(ttt) # <br>
- temp=open(srcfilename, 'w')
- temp.write(urls) # web.replace('@',urls)
- temp.close()
- webbrowser.open_new_tab(srcfilename)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement