From 7c7aaf18a1e1c930f8689897c13819e4adce144d Mon Sep 17 00:00:00 2001 From: kaos Date: Mon, 10 Aug 2015 11:31:03 +0200 Subject: [PATCH] phrases --- Phrases of power | 391 ++++++++++++++++++++++++++++++++++++++++++++++- icfp2015.cabal | 4 +- testPhrases.py | 23 ++- 3 files changed, 402 insertions(+), 16 deletions(-) diff --git a/Phrases of power b/Phrases of power index 9f70d4c..a6b3603 100644 --- a/Phrases of power +++ b/Phrases of power @@ -35,6 +35,7 @@ yoharnethlahai Devil's Reef pluto deep ones +deep one davar shoggoth both species have the right to exist on earth. @@ -56,7 +57,7 @@ dagon nodens nyarlathotep -#with - +#with shubniggurath shub niggurath yog sothoth @@ -147,7 +148,395 @@ Migo Shantaks Shantaks' +Pole of inaccessibility +Great Old One +old one +Great cthulhu +Dead cthulhu +Dread cthulhu +Tulu +Clulu +Clooloo +Cthulu +Cthullu +C'thulhu +Cighulu +Cathulu +C'thlu +Kathulu +Kutulu +Kthulhu +Q'thulu +K'tulu +Kthulhut +Kutu +Kulhu +Kutunluu +Ktulu +Cuitiliu +Cqulu +Thu Thu +Call of Cthulhu +The Dunwich Horror +The Whisperer in Darkness +Elder Things +Elder Gods + +The Horror in Clay +old Castro +irem + +August Derleth +Derleth Mythos + + +Hastur +Ithaqua +Nyarlathotep +Zhar +Lloigor +Nyogtha +ShubNiggurath +AphoomZhah +Cthugha +Dagon +Ghatanothoa +Mother Hydra +ZothOmmog + + +Abhoth +Aiueb Gnshal +Azathoth +AzhorraTha +The Blackness from the Stars +The Cloud Thing +C'thalpa +Cxaxukluth +Daoloth +Darkness +D'endrrah +Ghroth +Gi Hoveg +Haiogh Yai +Huitloxopetl +The Hydra +Ialdagorth +Kaajh'Kaalbh +Lu Kthu +Mh'ithrha +Mlandoth +Mril Thorion +Mother of Pus +The Nameless Mist +NgyrKorath +Nyarlathotep +Nyctelios +Olkoth +Shabbith Ka +ShubNiggurath +Star Mother +Tru'nembra +Tulzscha +UbboSathla +Uvhash +Xa'ligha +Xexanoth +Ycnagnnisssz +Yhoundeh +YibbTstll +Yidhra +Yomagn'tho + + +Bast +Kthanid +Orryx +Oztalun +Nodens +Shavalyoth +Ulthar +Vorvadoss +YadThaddag +Yaggdytha + + + + + + + + + + + + + + + + + +Devourer in the Mist +Herald of S'glhuo +Devourer of Stars +Creator of Nile and Universe's Equilibrium +The Cold Flame +Lord of the Pole +The Moon God +The Silent Shouter on the Hill +The Spider God +Spinner in Darkness +The Serpent Goddess +Aeg +Aega +The Widow in the Woods +The Many Mother +The Bringer of Pestilence +Master of the Crabs +The Soul Chilling Ice God +The Great Water Lizard +The Doom of Sarnath +The Black One +The Filler of Space +He Who Comes in the Dark +The Berkeley Toad +Serpent Bearded Byatis +Horror from the Hills +The Feeder +Caug Narfagn +Serpent Skirted One + +Master of the Runes +Bloody Crooked One +The Dark Water God +Cthaat Aquadingen + +The Living Flame +The Burning One +The Call of Cthulhu +Secret Daughter of Cthulhu +The Dream Daemon +The Destroying Eye +The Waiting Dark +The Mortician God +She Whose Hand Embalms +The Burrower From the Bluff +Eidolon of the Blind +The StoneThing +Lord of Lizards +The White God +The Pale Beast +God of the Labyrinth +The StarSeed +The Star Seed +The Plant God + +A Seed of Azathoth +Lord of the Volcano +Thoa +The Sound of the Deep Waters +The Inhabitant of the Lake +Lord of Dead Dreams +The Blind God of the Moon +The Corrupter of Flesh +Master of the Temple +Glhuun +The TwiceInvoked +The Twice Invoked + + +Eater on the Insane +Golgoroth +The Forgotten Old One +God of the Black Stone +Golgoroo + +The Horror Under Warrendown +The Demon Bird God +The Bird God of Balsagoo +The Destroyer God of the Aartna +Eater of Dreams +Shadow of Night +Lurker in Doomladen Shadows +Lurker in Doom laden Shadows +Mate of Othuyeg +The Dark One +The Contagion +The Unspeakable +He Who is Not to be Named +Lord of Interstellar Spaces +The King in Yellow +The Great Tentacled God +The Great One +The God of Cykranosh +Ziulquag Manzah +Cthulhu's Mate +Xothic Matriarch +The Sea Horror +The Shining Hunter +Mistress of Darkness +The Wind Walker +The Wendigo +God of the Cold White Silence +Guardian and the Key of the Watery Gates +The Lobster of the Deep +God of Yekub +The Ravenous One + +Bride of Cthulhu +The Leviathan of Diseased +The Great One +Cannoosut +All in All +Greater than Gods + +Spawn of the Forgotten +The Devil dingo +The Grey +The Forest Goddess +Harbinger of Doom +Mappo's Dragon +The River Abomination +The Devourer +The Cancer God +Lord of the Black Lake +The Monster in the Moon +The Charnel God +The Great Ghoul +Lord of ZulBhaSair +Lord of Zul Bha Sair +Morddoth +The Thousand Faced Moon +Storm of Steel +She Daemon of the Shadows +The Twin Spawn of Cthulhu +The Wolf Thing +The Stalker in the Snows +He Who Hunts +Nagirtalu +Na girt a lu +The The Forgotten God +The Thing That Should Not Be +The Heart of the Ages +Leech of the Aeons +The Twin Blasphemies +The Kraken Within +The Zombifying Essence +The Thing which Should Not Be +Haunter of the Red Abyss +The Shatterer +Mnomquah's Mate +The Oceanic Horror +The Doom Walker +Pharol the Black + +The Elder One +The Leopard That Stalks the Night +Treader of the Dust +The Eye of Z'ylsm +He Who Dwells Beneath Our Feet +The Crystalloid Intellect + +Seeker in the Skies +The One From Sun Race +Terror of the Hominids +He of the Ivory Throne +The Bearer of the Cup of the Blood of the Ancients + +The White Worm +The Fire God +The Hog + +The Crocodile God +The Great Manipulator +Ishmagon +The Fallen Wisdom +Eye of Wicked Sight +Mistress of the Abyssal Slime +Death Reborn +Zishaik +Chushaik + +Devourer of Souls + +The God in the Box +The Big Black Thing +The Tenebrous One +The Burrower Beneath +The GreatChthonian +The Devourer in the Earth +The Lost One +The Whiteness +Monarch of Night +The Terror that Walketh in Darkness + +The Shining One +The Shadow in the Crimson Light +The Demon God of Xuthal +The Godbeast +The Sleeper of N'kai +The Toad God +Zhothaqqua +Sadagowah +The Watery Dweller Beneath +Father of the Swamps +the Bayou Plant God +Lord of Pain +The Great Horned Mother +Black Glory of the Creation +Mother and Father to All Marine Life +The Hermaphroditic God +The Thing from Beyond + +Keeper of the Secrets +Yig's Terrifying Son +The Starfish God +The Sleeper of Ravermos +Gsarthotegga +Doom of Shaggai +The Dread One +The Goat God +The Ever Consuming +Maker of Illusions +Lord of Unreality +Lord of Terror +The Black Kraken of Atlantis + +The Faceless One +The Defiler + +The Worm God of the Lords of Thule +Father of Serpents +Master of the Seas +The Dark Stalker +The Dweller in the Depths +Lord of the Things Which Dwell Beneath the Surface +The Oldest Dreamer +Chief of the Giants +The Thing in the Pit +The All Consuming Fog +The Black Lord of Whirling Vortices +The Twin Obscenities +The Fiery Messenger +Dweller in the Depths +Matriarch of Swarms +Zystulzhemgni +Dark Silent One +Old Night +Zul Che Quon +Zuchequon + +Feaster from the Stars +The Sky Devil +Ossadagowah +R'lyehian +ck'yarnak ehye +hissing and gentle gibbering on the wind +gibbering + + +case nightmare green diff --git a/icfp2015.cabal b/icfp2015.cabal index 734a37d..afe2572 100644 --- a/icfp2015.cabal +++ b/icfp2015.cabal @@ -60,7 +60,7 @@ executable icfp2015 other-extensions: OverloadedStrings, DeriveGeneric, DeriveDataTypeable -- Other library packages from which modules are imported. - build-depends: base >=4.6 && <4.9, hashable >=1.2 && <1.3, containers >=0.5 && <0.6, QuickCheck >=2.7 && <2.9, bytestring >=0.10 && <0.11, aeson >=0.8 && <0.9, pqueue >=1.3 && <1.4, clock >= 0.1 + build-depends: base >=4.6 && <4.9, hashable >=1.2 && <1.3, containers >=0.5 && <0.6, QuickCheck >=2.7 && <2.9, bytestring >=0.10 && <0.11, aeson >=0.8 && <0.9.2, pqueue >=1.3 && <1.4, clock >= 0.1 -- Directories containing source files. hs-source-dirs: src @@ -68,5 +68,5 @@ executable icfp2015 -- Base language which the package is written in. default-language: Haskell2010 - ghc-options: -O3 -threaded + ghc-options: -O3 -threaded -rtsopts diff --git a/testPhrases.py b/testPhrases.py index c93b726..3d9c4a2 100644 --- a/testPhrases.py +++ b/testPhrases.py @@ -51,40 +51,37 @@ else: powerPhrases = [] for phrase in phrases: - phrase = phrase.lower() if phrase != "\n" and phrase[0] != '#': + phrase = phrase.lower()[:-1] found = False for serverResult in serverResults: - if serverResult['solution'].encode('ascii','replace') == phrase[:-1]: + if serverResult['solution'].encode('ascii','replace') == phrase : found = True if serverResult['powerScore'] > 0: - print "Eureka! %s powerScore: %s score: %s"%(phrase[:-1], serverResult['powerScore'], serverResult['score']) - powerPhrases.append(phrase[:-1]) + print "Eureka! %s powerScore: %s score: %s"%(phrase , serverResult['powerScore'], serverResult['score']) + powerPhrases.append(phrase ) break elif serverResult['powerScore'] is None: - print " Evaluation pending on %s"%phrase[:-1] - break - else: - #print "No powerScore on %s"%phrase[:-1] + print " Evaluation pending on %s"%phrase break if found: continue for i in range (0, 25): - process = subprocess.Popen(['src/TestSolution -f sample_problems/problem_'+str(i)+'.json -n 0 -p ' + stringToCommandSequence(phrase[:-1])], shell = True, stdout=subprocess.PIPE) + process = subprocess.Popen(['src/TestSolution -f sample_problems/problem_'+str(i)+'.json -n 0 -p ' + stringToCommandSequence(phrase )], shell = True, stdout=subprocess.PIPE) out, err = process.communicate() if err == None and out.find("Error") == -1 and out.find("Irrefutable") == -1: break if err == None and out.find("Error") == -1 and out.find("Irrefutable") == -1: - OUTPUT=('[{"seed":0,"tag":"shapeShifter","solution":"%s","problemId":12}]'%phrase[:-1]).replace('"', "\\\"") + OUTPUT=('[{"seed":0,"tag":"shapeShifter","solution":"%s","problemId":12}]'%phrase ).replace('"', "\\\"") process = subprocess.Popen(['curl --user :2aaFCkjNIDHAsAIh9iQHc+Y+FGhkM5Z0RQgpO6TL6EA= -X POST -H "Content-Type: application/json" -d "' + OUTPUT + '" https://davar.icfpcontest.org/teams/235/solutions'], shell = True, stdout=subprocess.PIPE) out, err = process.communicate() if err == None and out == "created": - print "%s sended"%phrase[:-1] + print "%s sended"%phrase else: print out - print " %s unable to comunicate with server"%phrase[:-1] + print " %s unable to comunicate with server"%phrase else: - print " %s return error"%phrase[:-1] + print " %s return error"%phrase print "\n%d power phrases found:"%len(powerPhrases) for powerPhrase in powerPhrases: print powerPhrase