Console Alchemist

This game isn’t actually on Scratch, but was instead written in Python using Replit(a platform for browser-based coding).

Since I haven’t fully finished the game yet, I haven’t given the link—but you can paste the source code at the bottom into a new Replit project that uses Python, using the instructions below.

The game’s similar to “alchemy games” like Little Alchemy, Doodle God, and cary Huang’s Elemental series, where the main objective is to find new elements by combining the ones you have. Unlike these games, however, mine is text-based, but I’ve tried to add pseudo-visual elements in the icons for the element groups(used to categorize elements) and in the achievements. I’ve made a somewhat similar template for this type of game on Scratch.

First, go to replit.com. If you’re signed into your account, you can skip the next step, but if you haven’t signed in or don’t have a Replit account, click the “Sign Up” or “Log In” buttons on the top-right corner.

Once you’ve logged into Replit, click one of the two blue “Create Repl” buttons(one by the left sidebar and the other below the “New on Replit” gallery)

After this, either create a new Replit account or log in with your existing one.

When creating your Repl, make sure to open the templates menu and click “Python”. This is the language my program is written in.

Once you’ve created the project, paste the source code below into the box at the center-left of the screen. This box is where the code is usually positioned, and the output should appear on the console on the right. If you have any questions, contact my account on Scratch (earthpotato)

Source Code(to paste into Replit)

import os
import random
menu = "menu"
menuOptions = ["Game","Achievements","Hints"]
if True: #periodic table
  The_Inaccurate_Periodic_Table =["hydrogen","helium","lithium","beryllium","boron","carbon","nitrogen","oxygen","fluorine","neon","sodium","magnesium","aluminium","silicon","phosphorus","sulfur","chlorine","argon","potassium","calcium","scandium","titanium","vanadium","chromium","manganese","iron","cobalt","nickel","copper","zinc","gallium","germanium","arsenic","selenium","bromine","krypton","rubidium","strontium","yttrium","zirconium","niobium","molybdenum","technetium","ruthenium","rhodium","palladium","silver","cadmium","indium","tin","antimony","tellurium","iodine","xenon","cesium","barium","lanthanum","cerium","praseodymium","neodymium","promethium","samarium","europium","gadolinium","terbium","dysprosium","holmium","erbium","thulium","ytterbium","lutetium","hafnium","tantalum","tungsten","rhenium","osmium","barium","lanthanum","actinium","quicksilver","protactinium","uranium","neptunium","plutonium","americium","curium","berkelium","californium","einsteinium","fermium","mendelevium","nobelium","lawrencium","rutherfordium","dubnium","seaborgium","bohrium","hassium","meitnerium","darmstadtium","roentgenium","copernicium","nihonium","flerovium","moscovium","livermorium","tennessine","oganesson"]
  The_Planets = ['mercury(planet)',"venus","earth(planet)","mars","jupiter","saturn","uranus","neptune","pluto"]
Achievements = ["And So It Begins","🪨 A Rocky Start","🔥 Warming Up","💧 Sopping Wet","💨 Quite A Breeze","🧱 Bad At Pottery","🇭 Electrolysis","🌊 The Great Deluge","🪨 One Smelter's Trash...","🔴 A Sanguine Hue","💯/2 Semicentennial","🏜️ It Gets Everywhere","⚛ Avid Learner","⚡ Energetic","🏞️ Interpid Explorer","🧺 Material-istic","🧬 Neophyte","🛠️ Tinkerer","🌀 Around And Around","🦠 You've Seen One Microbe, You've Seen Them All","🧫 Come Together","🌱 Room To Grow","🐾 Menagerie","🐞 It's Been Bugging Me","🐋 A Whale Of A Time","💯 Centennial!","🦖 Life Finds A Way","🦊 Orange Dog","💡 Illuminating Discovery","♨️ A Haven For Life?","🛞 Reinvention","🪦 Do Not Go Gentle...","🧪 Volatile Brew","💨 ...Not Any More, There's A Blanket","⚙️ Just Another Cog...","🍗 Finger-Licking Good","🏠 Humble Abode","🔢 2^8","✏️ Rough Draft","🪦 ...Into That Good Night","🍔 Hungering For More","🔢 2+2=5","🖩 Student's Best Friend","🍦 冰淇淋","🍰 Hopefully Not Black Forest","🌌 Above And Beyond!","🌎 Hollow World","🏞️ Worldwide Voyager","🥧 Element 314.1592653589793238462643383279502884197169399375105820974944","🧀 Moon Rocks","🌎 All Of Earth's Water","🌎 Mostly Harmless","💨 Blown Away","🌌 Beyond The Karman Line","📈 X and Y","◯ Full Circle","♇ Everyone's Favorite Dwarf Planet","♅ Nothing Special Here","🧊 Brrrr...","↗️ Direction and Magnitude","☿️ The Planet, Not The Metal","☀️ Not Quite Stellar","☀️ My Very Educated Mother","🌓 Eternal Day, Unending Night","⚙️ ...In The Machine","☀️ Just Served Up Nachos","☀️ Celestial Neighborhood","🪐 Lord Of The Rings","❗ File Not Found","💬 Bang! Whiz! Pow!","🌐 Backbone Of The Internet","🍪 Data Collector","🚂 Revving Up Your Engines","💻 Online Newbie","🧑 A People Person","💫 Like A Record Player"]
AchievementConditions = ["Make your first element","Unlock more than 5 elements in the Earth category","Unlock more than 5 elements in the Fire category","Unlock more than 5 elements in the Water category","Unlock more than 5 elements in the Air category","Make a mud brick","Split hydrogen from water","Make a flood","Cool slag from molten metal","Cause metal to rust","Unlock 50 elements","Erode stone into sand","Unlock more than 8 elements in the Science category","Unlock more than 5 elements in the Energy category","Unlock more than 5 elements in the Landforms category","Unlock more than 5 elements in the Materials category","Unlock more than 5 elements in the Life category","Unlock more than 5 elements in the Tools category","Make a cyclone","Create Archaea--one of the earliest forms of life","Combine eukaryotic cells to create a multicellular organism","Unlock more than 5 elements in the Plants category","Unlock more than 5 elements in the Animals category","Evolve invertebrates into terrestrial insects","Evolve mammals into whales","Unlock 100 elements!","Evolve archosaurs into a certain famous type of reptile...","Evolve a fox from canine ancestors","Create a light bulb","Create a hydrothermal vent","Invent a wheel","Unlock death...","Unlock more than 5 elements in the Chemicals category","Create ozone","Unlock more than 5 elements in the Machinery category","Cook a delicious drumstick","Unlock more than 5 elements in the Structures category","Unlock numbers(which you can see if you type in #, by the way)","Unlock more than 5 elements in the Writing category","Unlock more than 5 elements in the Death category","Unlock more than 5 elements in the Food And Drink category","Unlock more than 5 elements in the Math category","Invent a calculator","Freeze 冰淇淋","Bake a cake","Unlock 300 or more elements","Create a planetary crust--but not the planet it's part of","Unlock more than 10 elements in the Landforms category","Make/Discover pi(e)","Age blue cheese","Create the hydrosphere(every bit of water on a planet)","Create a planet capable of sustaining life...","Unlock more than 10 elements in the Air category","Unlock more than 5 elements in the Space category","Create a graph","Find out how many degrees a full circle contains...","Create the ninth planet in the solar system","Create an ice giant with an ignorable, unremarkable name","Freeze nitrogen into ice","Make a vector that travels through both the x- and y- axes","Create the first planet from the sun","Create a brown dwarf star--or a rather large gas giant","Create a planet with a large core, a planet with a hot surface, a planet capable of sustaining life, and a planet covered in deserts","See what happens when you put a planet close to a red dwarf","Create a gear","Create a gas giant the size of a star, a gas giant with spectacular rings, an ice giant covered in clouds, and an ice giant discovered through math","Create a planetary system containing a certain life-harboring planet...","Add rings to an already ringed gas giant","Cause a digital error","Create a new form of storytelling--one with exclaimation marks and speech bubbles galore!","Create a computer server","Create a pastry-ish dessert used for collecting data on webpages","Unlock more than 5 elements in the Transportation category","Unlock more than 5 elements in the Modern Tech category","Unlock more than 5 elements in the Humanity category","Create an orbit"]
UnlockedAchievements = []
Elements = ["air","earth","fire","water","time","cold","electricity","motion","metal","dust","vapor","ash","smoke","stone","ice","heat","lava","obsidian","mountain","lake","sea","ocean","glacier","mud","brick","wetland","iron","mountain range","wind","wave","sound","cloud","rain","snow","hail","storm","lightning","thunder","lightning rod","plasma","salt","brine","flood","molten metal","slag","rust","ore","hydrogen","quicksilver","life","sand","glass","desert","oasis","island","ceramics","sandstone","river","mirror","kiln","mist","fog","archipelago","magnetism","wire","hourglass","light","tornado","cyclone","evolution","archaea","bacteria","eukaryote","multicellular org.","vertebrate","invertebrate","plant","fungi","plankton","phytoplankton","fish","tetrapod","amphibian","arthropod","insect","canyon","delta","mammal","photosynthesis","cyanobacteria","reptile","turtle","snake","whale","grass","tree","forest","continent","primate","human","wolf","dog","archosaur","dinosaur","extinction","fossil","bird","rainforest","plains","savanna","ungulate","deer","reindeer","idea","knowledge","science","classical elements","periodic table","mendeleev","carbon","penguin","waterfowl","society","information","rainbow","worm","tundra","permafrost","taiga","cactus","conifer","bear","polar bear","fox","solid","liquid","gas","beetle","scarab","tree frog","salamander","domestication","chicken","duck","songbird","liquidnitrogen","nitrogen","ammonia","earthquake","volcano","chasm","oceanic trench","hydrocarbon","petroleum","methane","molten iron","alloy","tools","wood","engineer","woodworker","saw","lumberjack","axe","planks","sawdust","wood beams","machine","furnace","light bulb","lamp","pole","streetlamp","hydrothermal vent","tubeworm","leaves","stick","campfire","pencil","bush","steel","metal beams","wall","window","chimney","torch","reeds","pulp","paper","writing","book","house","rotation","whirlpool","axle","wheel","library","tea","bamboo","death","corpse","cremation","soul","poison","viper","skeleton","bone","calcium","fertilizer","coffin","tomb","graveyard","acid","hydroxide","chemical base","oxygen","ozone","livestock","dolphin","manatee","bucket","crucible","milk","cheese","yogurt","fondue","meat","bluecheese","drumstick","marrow","poultry","meatskewer","flower","bouquet","fruit","juice","icepop","barn","farmer","farm","seed","plow","field","crops","nut","acorn","oak","orchard",'drupe',"rice","egg","omelette","sushi","tamago","math","numbers","addition","inverse operation","subtraction","multiply","exponent","divide","root","±","barbecue","ribs","grain","flour","silo","granary","dough","bread","absolutezero","oven","pastry","equation","graph","statistics","probability","baker","calculator","fridge","freezer","cheesewheel","icecream","chisel","cake","cheesecake","icecreamcake","pickaxe","cobblestone","cow","sheep","wool","fabric","sewingmachine","cotton","fueltank","gear","space","tectonicplate","crust","planet","mantle","core","gasgiant","day","night","bat","sky","atmosphere","greenhouse effect","circle","π","pie","sphere","orbit","moon","star","sun","planetary system","asteroid","comet","crater","meteor","titan(moon)","mars","planetesimal","protoplanet","io(moon)","star cluster","hydrosphere","earth(planet)","aquatic planet","cart","bicycle","ship","aircraft","spacecraft","rocket","venus","panda","otter","palm tree","arachnid","planetary rings","helium","balloon","point","line","ruler","protractor","angle","polygon","x-axis","y-axis","vector","edge","revolution","360°","radian","dwarf planet","pluto","double planet","year","charon","icegiant","neptune",'uranus',"triton","nitrogenice","browndwarf","reddwarf","venus","innersolarsystem","satellite","computer","spaceplane","car","aircraftcarrier","icemoon","waterfall","balllightning","ballbearing","map","globe","compass","eyeballplanet","acidrain","jupiter","outersolarsystem","solarsystem","asteroidbelt","J1407b","internet","radiation","radio","phone","eclipse","communication","language","binary","webpage","error","!","speechbubble","comic","story","e-book","author","server","serverbuilding","cookie","cracker","icecreamsandwich","inscription","astrology","astronomy","constellation","meme","zodiac","webcomic","eyeballplanet","pluto","gene","shepherddog","Δ","log","color","paint","painting","mural","screen","digital art","plate","meal"]
unlockedElementsNumber = 7 
UnlockedElements = []
for i in range(unlockedElementsNumber):
  UnlockedElements.append(Elements[i])
#UnlockedElements = ["air","earth","fire","water","time","cold","electricity","motion","metal"]
Combinations = ["air earth","fire time","water air","fire water","ash air","earth earth earth","fire cold","cold water","fire fire","earth fire fire","fire fire earth","earth heat","stone fire fire","fire fire stone","stone heat","lava time","lava air","lava water","lava cold","stone stone stone stone","water water water","lake lake","sea sea","ice ice ice","water earth","fire mud","mud heat","mud mud","mud lake","earth lake","water electricity","dust fire","mountain mountain","air motion","air air","air heat","air cold","water wind","ocean wind","ocean time","wave wave","wave air","vapor time","vapor vapor vapor","vapor air","vapor cold","cloud water","cloud time","cloud cold","cloud ice","ice wind wind","wind wind ice","cloud wind","wind wind wind","cloud cloud cloud","cloud rain","storm electricity","cloud electricity","storm sound","cloud sound","lightning sound","thunder time","lightning metal","lightning lightning","heat heat heat heat","lightning heat","hydrogen heat","sea time","sea heat","ocean heat","salt water","heat water","water time","vapor cloud","rain water","rain rain","flood flood","lake water","lake rain","glacier heat","sea rain","water motion","sea motion","ocean motion","wave water","metal heat","molten metal cold","molten metal time","metal time","metal rain","metal water","metal air","metal earth","metal stone","iron time","iron rain","iron water","iron air","metal liquid","ocean electricity","wetland time","sea electricity","wetland electricity","stone water","stone wind","stone time","dust dust dust","sand heat","sand lightning","sand sand sand","desert water","desert lake","sea earth","sea mountain","ocean earth","ocean mountain","water solid","water gas","earth solid","earth liquid","sand water","sand time","stone sand","mountain water","lake mountain","rain mountain","glass metal","brick brick fire","fire brick brick","vapor water","mist mist","mist cloud","island island","ocean mountain range","iron electricity","electricity metal","wire wire electricity","electricity wire wire","heat iron","air fire","kiln mud","kiln sand","glass sand","glass time","storm wind","wind wind cloud","cloud motion","air wind wind wind","tornado tornado","life time","wetland life","lake life","life evolution","archaea evolution","archaea archaea","eukaryote eukaryote","eukaryote evolution","water bacteria","ocean bacteria","ocean life","life stone","skeleton life","invertebrate skeleton","air plankton","light plankton","plankton evolution","plant plankton","phytoplankton multicellular org.","phytoplankton life","vertebrate water","vertebrate lake","vertebrate sea","vertebrate ocean","vertebrate river","vertebrate evolution","fish evolution","fish earth","fish air","vertebrate earth","vertebrate mud","fish mud","vertebrate wetland","fish wetland","invertebrate air","invertebrate earth","invertebrate evolution","exoskeleton invertebrate","arthropod evolution","arthropod air","arthropod earth","river time","river sandstone","river river","tetrapod evolution","tetrapod cold","plant water","plant air","plant light","phytoplankton water","phytoplankton air","phytoplankton light","photosynthesis life","photosynthesis plankton","photosynthesis multicellular org.","bacteria light","bacteria photosynthesis","bacteria plant","cyanobacteria water","cyanobacteria air","cyanobacteria light","cyanobacteria fungi","tetrapod earth","tetrapod island","tetrapod desert","mammal ocean","mammal sea","mammal fish","lake mammal","mammal river","plant earth","plant time","plant rain","plant evolution","tree tree","plant plant plant plant","tree plant","forest plant","mountain range mountain range","island earth earth","archipelago archipelago archipelago","tree mammal","mammal evolution","primate evolution","primate fire","primate time","primate stone","forest animal","wolf human","reptile sea","reptile lake","reptile ocean","reptile island","reptile wetland","reptile desert","reptile evolution","archosaur evolution","dinosaur time","dinosaur skeleton","dinosaur earth","skeleton earth","skeleton stone","skeleton time","dinosaur evolution","dinosaur air","tetrapod air","forest rain","forest mist","forest fog","forest forest","desert desert","earth grass","grass grass","plains primate","plains heat","forest desert","plains forest","primate plains","mammal plains","grass mammal","ungulate ocean","ungulate sea","ungulate fish","ungulate forest","ungulate tree","cold deer","deer snow","deer ice","rain deer","human time","human information","information information information","idea information","time idea","knowledge knowledge","knowledge idea","fire earth water air","earth fire water air","fire earth air water","earth fire water air","classical elements science","human periodic table","plant fire","heat plant","tree fire","fire tree","bird ice","glacier bird","cold bird","bird fish","bird water","lake bird","bird river","carbon heat","fire carbon","human human human human","human human idea","human idea human","idea human human","rain light","light water air","light air water","air light water","water light air","time rain","mud invertebrate","wetland invertebrate","worm reptile","worm tetrapod","tree sand","tree island","tree desert","savanna tree","cold plains","deer tundra","snow plains","ice plains","tundra earth","earth ice","mud ice","earth cold","mud cold","permafrost permafrost","forest cold","forest snow","palm tree sand","island tree","archipelago tree","tree oasis","plant desert","sand plant","cactus sand","tree taiga","cold tree","snow tree","conifer conifer","tree conifer","snow conifer","taiga ungulate","deer taiga","mammal taiga","mammal glacier","bear cold","snow bear","ice bear","heat polar bear","taiga wolf","taiga dog","fire wolf","fire dog","insect stone","insect earth","beetle sand","desert beetle","tree amphibian","rainforest amphibian","amphibian fire","amphibian cold","amphibian lizard","human mammal","human bird","wolf domestication","domestication bird","pond waterfowl","waterfowl domestication","tree bird","cold cold air","liquid air","liquid nitrogen gas","liquidnitrogen heat","liquidnitrogen time","liquid nitrogen periodic table","air periodic table","nitrogen hydrogen","hydrogen hydrogen hydrogen nitrogen","nitrogen liquid","cold nitrogen","continent motion","earth motion","ocean earthquake","earthquake wave","lava mountain","stone lava","mountain earthquake","island earthquake","island lava","earth earthquake","chasm water","river chasm","ocean chasm","sea chasm","hydrogen carbon","time time wetland","plankton time","hydrocarbon earth","stone hydrocarbon","fossil time","hydrocarbon gas","molten metal molten metal","molten iron molten metal","metal human","tools tree","human tree","tree time","wood primate","human wood","metal wood","stone human","stone primate","tree stone","tools primate","tools mammal","tools human","tools science","engineer engineer","human engineer","idea engineer","engineer wood","wood tools","woodworker tools","woodworker tree","human saw","lumberjack tools","tree lumberjack","saw tree","tree axe","axe human","saw wood","planks saw","woodworker wood","dust saw","wood axe","lumberjack wood","fire wood","wood heat","tools metal tools","tools tools metal","metal metal tools","wire tools","tools tools tools","human machine","liquidnitrogen water","machine heat","kiln tools","kiln fire","kiln heat","machine fire","iron liquid","brick brick carbon","brick brick heat","glass electricity","tools glass light","wire glass","light wire","light bulb wire","electricity light bulb","tools light bulb","light bulb wood","light bulb metal","light human","human light bulb","wood beams wood beams","pole light bulb","pole lamp","lamp wood beams","earthquake oceanic trench","oceanic trench volcano","lava oceanic trench","time hydrothermal vent","worm hydrothermal vent","worm oceanic trench","tree water","tree grass","tree photosynthesis","tree light","tools leaves","wood leaves","leaves time","wood beams axe","tools wood beams","stick stick","stick wood","stick fire","wood wood fire","carbon fire","carbon stick","pencil human","leaves plant","leaves leaves leaves","leaves stick","iron furnace","carbon iron","molten iron carbon","iron tools","steel electricity","metal wood beams","pole metal","iron wood beams","iron pole","steel wood beams","steel pole","metal beams metal beams","brick brick brick brick","planks planks planks","planks wood beams","planks metal beams","metal beams glass","brick glass","planks glass","glass wall","smoke brick brick","kiln brick","wall smoke","ocean chimney","oceanic trench chimney","window planks","window metal beams","window window","stick light","stick carbon","stick fire","plant delta","plant wetland","lake plant","plant river","sawdust water","pulp time","pulp fire","pulp air","wood water water","water wood water","water water wood","stick paper","wood paper","paper carbon","tools paper","pencil paper","paper idea","pencil idea","writing writing","paper paper paper","paper writing","wall wall wall wall","wall window","wall chimney","wall human","motion motion","motion cyclone","storm rotation","water rotation","rotaion metal","stick rotation","tools rotation","wood axle","tools axle","planks axle","wood machine","reeds tools","book book book book","house book","leaves water","leaves heat water","stick grass","grass forest","life fire","heat life","time time life","time time time life","human death","human fire","heat human","life corpse","death death death","fire corpse","ash corpse","human life","life death","liquid death","water death","human poison","poison snake","reptile poison","human viper","corpse time","skeleton time","skeleton tools","skeleton stone","bone bone bone bone","life bone","periodic table bone","skeleton periodic table","bone earth","bone time","plant death","corpse earth","fertilizer earth","fertilizer time","fertilizer life","fertilizer water","bone stone","planks corpse","wood corpse","wall coffin","coffin house","tomb house","earth coffin","coffin coffin","hydrogen liquid","water hydrogen","poison liquid","hydrogen oxygen","hydroxide solid","hydroxide liquid","acid human","chemical base human","acid chemical base","bear bamboo","grass bear","photosynthesis air","photosynthesis time","photosynthesis plant","oxygen oxygen oxygen","hydrogen hydrogen oxygen","human lightning","lava human","human ungulate","human mammal","tools water","ceramics water","bucket lava","bucket livestock","mammal bucket","molten iron bucket","molten metal bucket","furnace bucket","crucible kiln","ore furnace","ore crucible","stone crucible","stone crucible","stick human","milk fungi","milk bacteria","yogurt time","time milk","cheese liquid","fire cheese","brine milk","livestock death","livestock fire","mammal death","mammal fire","cheese fungi","bone meat","bird meat","bird death","bone poultry","bamboo tools","human bamboo","stick meat","poultry tools",'forest vapor',"light plant","time plant","flower flower flower","flower tree","fruit water","juice ice","cold juice","wolf bone","livestock house","human barn","livestock human","barn earth","plant plant","flower time","fruit time","tools seed",'earth tools',"seed earth",'seed time','seed water',"earth plow","human earth","plains plow","field seed","field time","field water","livestock field","field barn","crops human","field human","plow human","earth farmer","tools farmer","fruit seed","tree nut","acorn earth",'acorn time','acorn water',"oak oak","tree oak","tree field","tree farm","fruit nut","wetland crops","tetrapod tetrapod","tetrapod time","bird bird","bird time","fish fish","fish time","reptile reptile","reptile time","egg fire","fish rice","sushi omelette","writing science","knowledge writing","math writing","paper science","addition inverse operation","addition addition","multiply multiply","inverse operation multiply","inverse operation exponent","tree earth","subtraction addition","kiln meat","furnace meat","barbecue meat","kiln ribs","furnace ribs","crops tools","grain stone","grain tools","metal grain","wall grain","house grain","granary metal","water flour","dough fire","dough fungi","dough time","bread kiln","dough egg","cold cold cold cold","absolutezero air","absolutezero water","math writing","numbers numbers","motion equation","paper equation","graph science","statistics math","human oven","human bread","human dough","baker house","oven house","forest human","math machine","tools math","cold machine","ice machine","fridge cold","juice freezer","wheel cheese","milk cold","milk freezer","tools stone","writing chisel","stone writing","wood writing","flour milk egg","flour egg","cake cheese","cake icecream","cake human","stick stone","mountain tools","pickaxe stone","stone axe",'ore tool',"bucket lava","tools cobblestone","cobblestone furnace","milk livestock","cloud livestock","sheep tools","wool tools","machine fabric","plant wool","cotton tools","silo petroleum","wheel metal","wheel machine","tools forest","continent continent","tectonicplate tectonicplate","crust lava","lava lava lava","mantle molten metal","molten metal molten metal molten metal","mantle molten iron","molten iron molten iron molten iron","core mantle crust","crust mantle core","core lava","mantle earth","core rotation","core motion","planet hydrogen","planet gas","planet rotation","time day","mammal night","mammal air","bird mammal","air planet","planet sky","sky air","heat atmosphere","rotation rotation","rotation math","circle numbers","circle circle","π pastry","pie number","circle pastry","planet motion","sphere earth","circle motion","planet circle","planet orbit","sky stone","sphere stone","stone orbit","plasma planet","plasma plasma plasma","plasma gasgiant","fire gasgiant","gasgiant gasgiant","fire planet","planet light","gasgiant light","day star","star light","planet star","orbit orbit","star orbit","sky night","sky sky sky","planet night","stone space","earth space","ice space","ice asteroid","gas asteroid","vapor asteroid","planet comet","asteroid planet","moon comet","asteroid moon","sky comet","sky asteroid","atmosphere comet","atmosphere asteroid","moon methane","fog moon","rust planet","desert planet","tundra planet","asteroid asteroid","asteroid comet","planetesimal planetesimal","protoplanet protoplanet protoplanet","moon volcano","planetary system planetary system planetary system","star star star star","ocean ocean ocean ocean","water planet","ocean planet","planet life","human planet","hydrosphere planet","hydrosphere hydrosphere","earth(planet) time","earth(planet) air","earth(planet) water","earth(planet) earth","wheel planks wheel","planks wheel wheel","wheel wheel","planks water","planks river","planks lake","planks sea","planks ocean","cart water","cart river","cart lake","cart sea","cart ocean","ship sky","ship air","bird metal","fueltank air","aircraft space","ship space","aircraft star","ship star","fueltank space","fueltank star","fueltank spacecraft","vapor sky","vapor atmosphere","water atmosphere","greenhouse effect planet","dust planet","orbit dust","orbit ice","comet orbit","gas giant planetary rings","gas giant dust","hydrogen sun","hydrogen star","sun periodic table","sphere helium","sphere asteroid","point point","equation point","point motion","wood line","line tool","line stick","ruler circle","ruler rotation","circle tool","line rotation","line line","ruler angle","angle tool","angle line","angle angle","line paper","x-axis y-axis","point circle","edge rotation","point orbit","revolution planet","revolution moon","rotation protractor","angle circle","circle protractor","line angle","protoplanet planet","planet dwarf planet","planet orbit planet","pluto moon","charon pluto","earth(planet) revolution","earth(planet) orbit","360° day","double planet dwarf planet","vapor planet","gas giant ice","gas giant water","cloud planet","cloud moon","icegiant ocean","cloud icegiant","sky icegiant","math icegiant","moon neptune","neptune dwarf planet","moon saturn","atmosphere moon","sky moon","air sun","sun sky","sun time","moon time","fire sky","light sky","night sun","nitrogen absolutezero","nitrogen solid","liquidnitrogen absolutezero","liquidnitrogen solid","liquidnitrogen cold","nitrogenice moon","nitrogenice dwarf planet","quicksilver planet","mercury(planet) metal","mercury(planet) periodic table","hydrogen gasgiant","gas gasgiant","browndwarf browndwarf","hydrogen browndwarf","browndwarf plasma","browndwarf fire","browndwarf light","browndwarf star","planet greenhouse effect","heat planet","mercury(planet) venus earth(planet) mars","rocket orbit","machine orbit","machine rocket","spacecraft machine","information machine","machine knowledge","calculator calculator","computer rocket","computer orbit","space computer","petroleum metal","tool petroleum","rocket atmosphere","spacecraft atmosphere","computer spacecraft","orbit spacecraft","petroleum cart","machine cart","cart fueltank","aircraft ship","moon ice","crater crater","rain crater","water crater","mountain rain","mountain lake","river mountain","reddwarf reddwarf","continent stone","earth stone","sphere lightning","sphere electricity","plasma sphere","fire sphere","bluecheese sphere","air sphere","metal sphere","earth(planet) paper","continent paper","map map map map","sphere map","planet map","earth(planet) map","globe earth","globe space","map magnetism","tool magnetism","compass paper","reddwarf planet","cloud acid","rain acid","acidrain planet","gasgiant brown dwarf",'gasgiant star',"jupiter saturn uranus neptune","innersolarsystem outersolarsystem","planetary system earth(planet)","asteroid orbit","asteroid space","asteroidbelt planet","planetary rings star","planetary rings saturn","planet planetary rings","planetary rings planetary rings","computer computer computer","satellite satellite","computer satellite","light motion","wave light","radiation machine","sound machine","internet machine","radio computer","moon earth(planet)","moon sun","human sound","idea sound","information sound","writing communication","writing idea","sound writing","language paper","computer language",'machine communication',"paper computer","paper internet","webpage death","death computer","internet death","point line","communication cloud","communication circle","writing cloud","writing circle","writing speechbubble","! speechbubble","! writing","human idea","writing human","! story","speechbubble story","idea communication","book idea","story paper","book phone","book internet","computer book","writing human","human book","internet computer","server house","internet house","death server","pastry oven","pastry salt","cookie salt","dough salt","webpage pastry","internet pastry","webpage dough","internet dough","cookie icecream cookie","cookie cookie icecream","icecream cookie cookie","sun planet","sun earth(planet)","planet planet","hydrocarbon fossil","fossil liquid","multicellular org. oxygen","idea paper","writing mammal","idea mammal","chimney ocean","volcano ocean","motion water","sea motion","ocean motion","lightning cloud","metal storm","pole storm","electricity pole","lightning pole","light stick","tree continent","stone continent","sand continent","tree map","stone map","sand map","tundra tundra","gasgiant planetary rings","core planet","wind wind wind wind","air rotation","human star","story star","astrology time",'astrology knowledge',"astrology science","science stars","astrology stars","sun constellation","moon constellation","year constellation","circle constellation","comic internet","life language","language story","gene language","gene story","ungulate grass","dog sheep","cow dog","delta writing","number motion","number delta","math wood","exponent wood","light glass",'rainbow light',"glass rainbow","rainbow water","color water","writing paint","paper paint","mud chisel","mud tools","mud engraving","ceramics chisel","wall painting","computer glass","screen painting","circle ceramics","circle stone","plate tools","plate bread","plate meat","plate fruit"] 
Results = ["dust","ash","vapor","vapor","smoke","stone","ash","ice","heat","lava","lava","lava","lava","lava","lava","stone","stone","obsidian","obsidian","mountain","lake","sea","ocean","glacier","mud","brick","brick","wetland","wetland","wetland","hydrogen","ash","mountain range","wind","wind","wind","wind","wave","wave","wave","sound","sound","cloud","cloud","cloud","cloud","rain","rain","snow","hail","snow","snow","storm","storm","storm","storm","lightning","lightning","thunder","thunder","thunder","lightning","lightning rod","plasma","plasma","plasma","plasma","wave","salt","salt","brine","vapor","vapor","rain","flood","flood","lake","flood","flood","flood","flood","wave","wave","wave","flood","molten metal","slag","slag","rust","rust","rust","rust","ore","ore","rust","rust","rust","rust","quicksilver","life","life","life","life","sand","sand","sand","sand","glass","glass","desert","oasis","oasis","island","island","island","island","ice","vapor","stone","mud","sandstone","sandstone","sandstone","river","river","river","mirror","kiln","kiln","mist","fog","fog","archipelago","archipelago","magnetism","wire","magnetism","magnetism","molten iron","smoke","ceramics","glass","hourglass","hourglass","tornado","tornado","tornado","cyclone","cyclone","evolution","archaea","archaea","archaea","eukaryote","eukaryote","multicellular org.","multicellular org.","plankton","plankton","plankton","skeleton","vertebrate","exoskeleton","phytoplankton","phytoplankton","phytoplankton","phytoplankton","plant","plant","fish","fish","fish","fish","fish","fish","tetrapod","tetrapod","tetrapod","tetrapod","amphibian","amphibian","amphibian","amphibian","insect","insect","arthropod","arthropod","insect","insect","insect","canyon","canyon","delta","mammal","mammal","photosynthesis","photosynthesis","photosynthesis","photosynthesis","photosynthesis","photosynthesis","plant","phytoplankton","plant","cyanobacteria","cyanobacteria","cyanobacteria","photosynthesis","photosynthesis","photosynthesis","lichen","reptile","turtle","snake","whale","whale","whale","otter","otter","grass","tree","tree","tree","forest","forest","forest","tree","continent","continent","continent","primate","primate","human","human","human","human","wolf","dog","turtle","turtle","turtle","turtle","snake","snake","archosaur","dinosaur","fossil","fossil","fossil","fossil","fossil","fossil","bird","bird","bird","rainforest","rainforest","rainforest","continent","continent","plains","plains","human","savanna","savanna","savanna","human","ungulate","ungulate","whale","whale","whale","deer","deer","reindeer","reindeer","reindeer","reindeer","idea","idea","idea","knowledge","knowledge","science","science","classical elements","classical elements","classical elements","classical elements","periodic table","mendeleev","carbon","carbon","carbon","carbon","penguin","penguin","penguin","penguin","waterfowl","waterfowl","waterfowl","ash","society","society","society","society","society","rainbow","rainbow","rainbow","rainbow","rainbow","rainbow","worm","worm","snake","snake","palm tree","palm tree","palm tree","acacia tree","tundra","reindeer","tundra","tundra","permafrost","permafrost","permafrost","permafrost","permafrost","tundra","taiga","taiga","desert","palm tree","palm tree","palm tree","cactus","cactus","desert","conifer","conifer","conifer","taiga","taiga","taiga","reindeer","reindeer","bear","polar bear","polar bear","polar bear","polar bear","bear","fox","fox","fox","fox","beetle","beetle","scarab","scarab","tree frog","tree frog","salamander","salamander","salamander","domestication","domestication","dog","chicken","duck","duck","songbird","liquidnitrogen","liquidnitrogen","nitrogen","nitrogen","nitrogen","nitrogen","nitrogen","ammonia","ammonia","liquidnitrogen","liquidnitrogen","earthquake","earthquake","flood","flood","volcano","volcano","volcano","volcano","volcano","chasm","river","canyon","oceanic trench","oceanic trench","hydrocarbon","petroleum","methane","petroleum","petroleum","petroleum","methane","alloy","alloy","tools","wood","wood","wood","tools","tools","tools","tools","tools","wood","human","human","engineer","engineer","knowledge","knowledge","knowledge","woodworker","saw","saw","lumberjack","lumberjack","axe","wood","log","wood","lumberjack","planks","sawdust","planks","sawdust","wood beams","wood beams","carbon","carbon","machine","machine","machine","machine","machine","engineer","ice","furnace","furnace","furnace","furnace","furnace","molten iron","kiln","kiln","light bulb","light bulb","light bulb","light bulb","light","light","lamp","lamp","lamp","idea","idea","pole","lamp","streetlamp","streetlamp","hydrothermal vent","hydrothermal vent","hydrothermal vent","life","tubeworm","tubeworm","leaves","leaves","leaves","leaves","stick","stick","stick","stick","stick","pole","pole","campfire","campfire","campfire","pencil","idea","bush","bush","bush","steel","steel","steel","magnetism","magnetism","metal beams","metal beams","metal beams","metal beams","metal beams","metal beams","wall","wall","wall","wall","wall","window","window","window","window","chimney","chimney","chimney","hydrothermal vent","hydrothermal vent","wall","wall","wall","torch","torch","torch","reeds","reeds","reeds","reeds","pulp","paper","paper","paper","pulp","pulp","pulp","pencil","pencil","pencil","pencil","writing","writing","writing","writing","book","book","house","house","house","house","rotation","rotation","cyclone","whirlpool","axle","axle","axle","wheel","wheel","wheel","sawdust","paper","library","library","tea","tea","bamboo","bamboo","death","death","death","death","corpse","corpse","corpse","death","extinction","cremation","cremation","soul","soul","poison","poison","death","viper","snake","death","skeleton","bone","bone","bone","skeleton","skeleton","calcium","calcium","fertilizer","fertilizer","fertilizer","fertilizer","plant","plant","plant","plant","fossil","coffin","coffin","tomb","mausoleum","mausoleum","graveyard","graveyard","acid",'acid',"acid","hydroxide","chemical base","chemical base","corpse","corpse","salt","panda","panda","oxygen","oxygen","oxygen","ozone","water","death","death","livestock","livestock","bucket","bucket","crucible","milk","milk","crucible","crucible","crucible","furnace","metal","metal","metal","metal","tools","cheese","yogurt","cheese","yogurt","fondue","fondue","cheese","meat","meat","meat","meat","bluecheese","ribs","poultry","poultry","drumstick","stick","stick","meatskewer","meat","rainforest","flower","flower","bouquet","fruit","juice","icepop","icepop","dog","barn","farmer","farmer","farm","seed","seed","seed","plow","plow","plant","plant","plant","field","field","field","crops","crops","crops","farm","farm","farmer","farmer","farmer","field","plow","nut","acorn","oak","oak","oak",'forest',"forest","orchard",'orchard',"drupe","rice","egg","egg","egg","egg","egg","egg","egg","egg","omelette","sushi","tamago","math","math","numbers","math","subtraction","multiply","exponent","divide","root","root","±","barbecue","barbecue","ribs","barbecue","barbecue","grain","flour","flour","silo","silo","granary","silo",'dough',"bread","bread","bread","oven","pastry","absolutezero","liquidnitrogen","ice","equation","equation","graph",'graph',"statistics","probability","baker","baker","baker","bakery","bakery","lumberjack","calculator","calculator","fridge","freezer","freezer","icepop","cheesewheel","icecream","icecream","chisel","inscription","inscription","inscription","cake","pastry","cheesecake","icecreamcake","baker",'tools',"pickaxe","cobblestone","pickaxe","pickaxe","cobblestone","pickaxe","stone","cow","sheep","wool","fabric","sewingmachine","cotton","fabric","fueltank","gear","gear","axe","tectonicplate","crust","mantle","mantle","core","core","core","core","planet","planet","mantle","crust","magnetism","magnetism","gasgiant","gasgiant","day","night","bat","bat","bat","sky","atmosphere",'atmosphere',"greenhouse effect",'circle','circle',"π","sphere","pie","π","pie","rotation","planet","orbit","orbit","moon","moon","moon","moon","star","star","star","star","browndwarf","star","star","star","sun","sun","planetary system","planetary system","planetary system","space",'space',"space","asteroid","asteroid","comet","comet","comet","comet","crater","crater","crater","crater","meteor","meteor","meteor","meteor","titan(moon)","titan(moon)","mars","mars","mars","planetesimal","planetesimal","protoplanet","planet","io(moon)","star cluster","star cluster","hydrosphere","ocean","hydrosphere","earth(planet)","earth(planet)","earth(planet)","aquaticplanet","life","sky","ocean","continent","cart","cart","bicycle","ship","ship","ship","ship","ship","ship","ship","ship","ship","ship","aircraft","aircraft","aircraft","aircraft","spacecraft","spacecraft","spacecraft","spacecraft","spacecraft","spacecraft","rocket","cloud","cloud","cloud","venus","planetary rings","planetary rings","planetary rings","planetary rings","saturn","planetary rings","helium","helium","helium","balloon","protoplanet","line","line","line","stick","ruler","ruler","protractor","protractor","wheel","angle","angle","protractor","protractor","polygon","polygon","graph","vector","edge","revolution","revolution","orbit","orbit","360°","360°","360°","radian","dwarf planet","pluto","double planet","charon","double planet","year","year","year","pluto","icegiant","icegiant","icegiant","gasgiant","titan(moon)","neptune","uranus","uranus","neptune","triton","triton","titan(moon)","titan(moon)","night","sky","day","day","night","sun","sun","star","nitrogenice","nitrogenice","nitrogenice","nitrogenice","nitrogenice","triton","pluto","mercury(planet)","quicksilver","quicksilver","browndwarf","browndwarf","reddwarf","reddwarf","reddwarf","reddwarf","reddwarf","reddwarf","venus","venus","innersolarsystem","satellite","satellite","satellite",'satellite',"computer","computer","computer","satellite","satellite","satellite","fueltank","fueltank","spaceplane","spaceplane",'satellite',"satellite","car","car","car","aircraftcarrier","icemoon","moon","lake","lake","river","river","waterfall","sun","mountain","mountain","balllightning","balllightning","sun","sun","moon","atmosphere","ballbearing","map","map","globe","globe","globe","globe","earth(planet)","earth(planet)","compass","compass",'map',"eyeballplanet","acidrain","acidrain","venus","jupiter","jupiter","outersolarsystem","solarsystem","solarsystem","asteroidbelt","asteroidbelt","rings","asteroidbelt","J1407b","saturn","J1407b","internet","internet","internet","radiation","radiation","radio","radio","computer","phone","eclipse","eclipse","communication","communication","communication","language","language","language","writing","binary","phone","webpage","webpage","error","error","error","!","speechbubble","speechbubble","speechbubble","speechbubble","comic","comic","comic","story","story","comic","comic","story","story","book","e-book","e-book","e-book","author","author","server","serverbuilding","serverbuilding","error","cookie","cracker","cracker","cracker","cookie","cookie","cookie","cookie","icecreamsandwich","icecreamsandwich","icecreamsandwich","day","day","orbit","petroleum","petroleum","vertebrate",'writing',"human","human","hydrothermal vent","hydrothermal vent","wave","wave","wave","storm","lightning","lightning rod","lightning rod","lightning rod","torch","forest","mountain","desert","forest","mountain","desert","continent","saturn","mercury(planet)","cyclone","cyclone","astrology","astrology","astronomy","astronomy","astronomy","astronomy","constellation","zodiac","zodiac","zodiac","zodiac","webcomic","gene","meme","meme","meme","cow","shepherddog","shepherddog","Δ","Δ","Δ","log","log","color","color","color","paint","paint","painting","painting","sculpture","sculpture","sculpture","sculpture","mural","screen","digital art","plate","plate","meal","meal","meal","meal"] 
SpecialCases1 = ['pencil',"vertebrate","idea","archaea","campfire","cyclone","planks","saw","webcomic","cow"]
SpecialCases2 = ["point","invertebrate","light bulb","bacteria","torch","storm","sawdust","axe","meme","sheep"]
SpecialCaseIndex = 0
ElementGroups = ["Air","Earth","Fire","Water","Science","Energy","Landforms","Materials","Life","Tools","Plants","Animals","Humanity","PeriodicTable","Chemicals","Machinery","Structures","Writing","Death","FoodAndDrink","Math","Space","Transportation","ModernTech","Communication","IdeasAndStories","VisualArts"]
GroupSymbols = ["💨","🪨","🔥","💧","⚛","⚡","🏞️","🧺","🧬","🛠️","🌱","🐾","🧑","⚛","🧪","⚙️","🏠","✏️","🪦","🍔","🔢","🌌","🚂","💻","💬","📖","🏺"]
Air = ["air","dust","ash","smoke","wind","cloud","rain","snow","hail","storm","lightning","thunder","hydrogen","mist","fog","rainbow","liquidnitrogen","nitrogen","ammonia","oxygen","ozone","day","night","sky",'atmosphere',"aircraft","helium","balloon","nitrogenice","greenhouse effect","acidrain"]
Earth = ["earth","metal","dust","stone","lava","obsidian","mountain","mud","brick","wetland","mountain range","salt","ceramics","molten metal","slag","rust","iron","ore","sand","desert","sandstone","quicksilver","canyon","continent","carbon","plains","savanna","tundra","earthquake","volcano","chasm","molten iron","alloy","steel","calcium","fertilizer","field","cobblestone","tectonicplate","crust","planet","mantle","core","earth(planet)"]
Fire = ["fire","ash","smoke","heat","lava","plasma","molten metal","kiln","carbon","volcano","petroleum","methane","molten iron","kiln","furnace","hydrothermal vent","chimney","torch","crucible","mantle","core","star","sun"]
Water = ["water","vapor","ice","lake","sea","ocean","glacier","mud","wetland","hydrogen","wave","rain","snow","hail","brine","flood","island","river","archipelago","mist","fog","fish","delta","whale","dolphin","manatee","oceanic trench","hydrothermal vent","whirlpool","tea","poison",'acid',"hydroxide","bucket","hydrosphere","aquatic planet","waterfall","acidrain"]
Science = ["time","electricity","motion","cold","heat","wave","sound","plasma","solid","liquid","gas","information","idea","knowledge","science","periodic table","mendeleev","light",'rotation',"math","absolutezero","statistics","probability","orbit","astronomy","Δ"]
Energy = ["electricity","motion","cold","heat","wave","sound","lightning","plasma","lightning rod","wire","mirror","photosynthesis","earthquake","light","light bulb","rotation","absolutezero","orbit","revolution","balllightning","radiation","color"]
Landforms = ["mountain","lake","sea","ocean","glacier","wetland","mountain range","desert","oasis","island","river","archipelago","canyon","delta","forest","plains","savanna","tundra","taiga","volcano","chasm","oceanic trench","tectonicplate","crust","planet","mantle","core","earth(planet)","map","globe","compass"]
Materials = ["brick","metal","salt","ceramics","glass","iron","wood","planks","wood beams","pole","stick","steel","sawdust","pulp","wool","fabric","cotton","ballbearing"]
Life = ["life","evolution","gene","archaea","bacteria","eukaryote","multicellular org.","vertebrate","invertebrate","plant","fungi","plankton","skeleton","human","extinction","hydrocarbon","death","corpse","soul","bone","fertilizer","milk"]
Tools = ["tools","kiln","mirror","hourglass","engineer","woodworker","saw","axe","machine","light bulb","lamp","pole","streetlamp","stick","pencil","torch","writing","book","axle","wheel","bucket","crucible","plow","calculator","chisel","pickaxe","sewingmachine","balloon","ruler","protractor","computer","map","globe","compass"]
Plants = ["plant","phytoplankton","fungi","photosynthesis","cyanobacteria","lichen","grass","tree","forest","rainforest","palm tree","cactus","conifer","wood","leaves","stick","bush","reeds","pulp","bamboo","fertilizer",'flower',"bouquet","fruit","seed","field","crops","nut","acorn","oak","orchard","drupe","rice","root","cotton","log"]
Animals = ["vertebrate","invertebrate","fish","tetrapod","amphibian","arthropod","insect","mammal","reptile","turtle","snake","whale","dolphin","manatee","otter","primate","human","wolf","dog","archosaur","dinosaur","bird","ungulate","penguin","waterfowl","worm","bear","polar bear","fox","beetle","scarab","domestication","chicken","duck","songbird","tubeworm","bat","viper","panda","livestock","milk","cow","sheep","wool","bat","shepherddog"]
Humanity = ["human","information","idea","knowledge","science","society","mendeleev","domestication","tools","engineer","woodworker","writing","corpse","soul","skeleton","farmer","baker","author"]
PeriodicTable = ["classical elements","periodic table","mendeleev","hydrogen","carbon","iron","quicksilver","nitrogen","calcium","oxygen","helium"]
Chemicals = ["water","rust","ammonia","hydrocarbon","petroleum","methane","acid","hydroxide","chemical base","salt","ozone"]
Machinery = ["engineer","machine","furnace","crucible","fridge","freezer","sewingmachine","gear","fueltank","computer"]
Structures = ["wall","window","chimney","house","library","barn","farm","silo","granary","bakery","serverbuilding"]
Writing = ["pencil","paper","writing","book","math","chisel","inscription","point","line","ruler","!","speechbubble","comic","story","author","paint","painting"]
Death = ["skeleton","fossil","extinction","death","corpse","soul","poison","bone","coffin","tomb","mausoleum","graveyard"]
FoodAndDrink = ["water","salt","tea","milk","cheese","yogurt","fondue","meat","bluecheese","drumstick","marrow","poultry","meatskewer","fruit","juice","icepop",'seed',"crops","nut","acorn","drupe","rice","egg","omelette","sushi","tamago","barbecue","ribs","grain","flour","dough","bread","oven","pastry","baker","bakery","fridge","freezer","cheesewheel","cake","pie","π","cookie","cracker","icecreamsandwich","plate","meal"]
Math = ["math","numbers","addition","inverse operation","subtraction","multiply","exponent","divide","root","±","equation","graph","statistics","probability","calculator","circle","π","sphere","pie","point","line","ruler","protractor","angle","polygon","x-axis","y-axis","vector","rotation","revolution","edge","360°","radian","binary","Δ","log"]
Space = ["space","planet","earth(planet)","crust","mantle","core","gasgiant","day","night","sky","atmosphere","greenhouse effect","orbit","moon","star","sun","titan(moon)","mars","planetesimal","protoplanet","io(moon)","star cluster","hydrosphere","aquatic planet","spacecraft","rocket","mercury(planet)","planetary rings","saturn","dwarf planet","pluto","double planet","charon","year","neptune","uranus","triton","browndwarf","reddwarf","venus","innersolarsystem","satellite","icemoon","eyeballplanet","jupiter","outersolarsystem","solarsystem","asteroidbelt","J1407b","eclipse","astrology","astronomy","constellation","zodiac"]
Transportation = ["wheel","cart","bicycle","ship","aircraft","spacecraft","rocket",'satellite',"car","aircraftcarrier"]
ModernTech = ['calculator',"computer","internet","radio","phone","webpage","error","e-book","server","serverbuilding","cookie","meme","screen","digital art"]
Communication = ["sound","communication","writing","language","radio","phone","internet","binary","meme"]
IdeasAndStories = ["idea","science","book","comic","astrology","webcomic","meme"]
VisualArts = ["color","paint","painting","sculpture","mural","digital art"]
combine = ""
combineList = []
def elementGroup(group):
  if "Air" == group:
    return(Air)
  if "Earth" == group:
    return(Earth)
  if "Fire" == group:
    return(Fire)
  if "Water" == group:
    return(Water)
  if "Science" == group:
    return(Science)
  if "Energy" == group:
    return(Energy)
  if "Landforms" == group:
    return(Landforms)
  if "Materials" == group:
    return(Materials)
  if "Life" == group:
    return(Life)
  if "Tools" == group:
    return(Tools)
  if "Plants" == group:
    return(Plants)
  if "Animals" == group:
    return(Animals)
  if "Humanity" == group:
    return(Humanity)
  if "PeriodicTable" == group:
    return(PeriodicTable)
  if "Chemicals" == group:
    return(Chemicals)
  if "Machinery" == group:
    return(Machinery)
  if "Structures" == group:
    return(Structures)
  if "Writing" == group:
    return(Writing)
  if "Death" == group:
    return(Death)
  if "Food&Drink" == group or "FoodAndDrink" == group:
    return(FoodAndDrink)
  if "Math" == group:
    return(Math)
  if "Space" == group:
    return(Space)
  if "Transportation" == group:
    return(Transportation)
  if "ModernTech" == group:
    return(ModernTech)
  if "Communication" == group:
    return(Communication)
  if "Ideas&Stories" == group or "IdeasAndStories" == group:
    return(IdeasAndStories)
  if "VisualArts" == group:
    return(VisualArts)
ResultIndex = False
new_element = False
discoveryCredits = 0
def unlockElement(element):
  global combine
  global combineList
  global discoveryCredits
  if not element in UnlockedElements:
    UnlockedElements.append(element)
    print("You have unlocked the element: " + element)
    discoveryCredits = discoveryCredits + 2
    combine = ""
    combineList = []
  else:
    print("Element(" + str(element) + ") already unlocked")
    discoveryCredits = discoveryCredits + 0.5
    combine = ""
    combineList = []
def combinations():
  global ResultIndex
  global SpecialCases1
  global SpecialCases2
  global SpecialCaseIndex
  for i in range(len(Combinations)):
    if len(combineList) > 1:
      if str(combine) in Combinations:
        ResultIndex = Combinations.index(combine)
        new_element = Results[ResultIndex]
        #print("result index:" + str(ResultIndex))
        #print("new element:" + str(new_element))
        unlockElement(new_element)
        #Special Cases
        if new_element in SpecialCases1:
          SpecialCaseIndex = SpecialCases1.index(new_element)
          unlockElement(SpecialCases2[SpecialCaseIndex])
        break
      elif str(combineList[1])+" "+str(combineList[0]) in Combinations:
        ResultIndex = Combinations.index(str(combineList[1])+" "+str(combineList[0]))
        new_element = Results[ResultIndex]
        #print("result index:" + str(ResultIndex))
        #print("new element:" + str(new_element))
        unlockElement(new_element)
        #Special Cases
        if new_element in SpecialCases1:
          SpecialCaseIndex = SpecialCases1.index(new_element)
          unlockElement(SpecialCases2[SpecialCaseIndex])
        break
      #else:
      #new_element = False
      #print(".")
  #print(str(combine))
  #print(str(combine) in Combinations)
def UnlockedElementsInEarth():
  ueie = 0
  for i in range(len(Earth)):
    if Earth[i] in UnlockedElements:
      ueie = ueie + 1
  return ueie
def UnlockedElementsInFire():
  ueif = 0
  for i in range(len(Fire)):
    if Fire[i] in UnlockedElements:
      ueif = ueif + 1
  return ueif
def UnlockedElementsInWater():
  ueiw = 0
  for i in range(len(Water)):
    if Water[i] in UnlockedElements:
      ueiw = ueiw + 1
  return ueiw
def UnlockedElementsInAir():
  ueia = 0
  for i in range(len(Air)):
    if Air[i] in UnlockedElements:
      ueia = ueia + 1
  return ueia
def UnlockedElementsInScience():
  ueis = 0
  for i in range(len(Science)):
    if Science[i] in UnlockedElements:
      ueis = ueis + 1
  return ueis
def UnlockedElementsInEnergy():
  ueien = 0
  for i in range(len(Energy)):
    if Energy[i] in UnlockedElements:
      ueien = ueien + 1
  return ueien
def UnlockedElementsInLandforms():
  ueil = 0
  for i in range(len(Landforms)):
    if Landforms[i] in UnlockedElements:
      ueil = ueil + 1
  return ueil
def UnlockedElementsInMaterials():
  ueim = 0
  for i in range(len(Materials)):
    if Materials[i] in UnlockedElements:
      ueim = ueim + 1
  return ueim
def UnlockedElementsInLife():
  ueil = 0
  for i in range(len(Life)):
    if Life[i] in UnlockedElements:
        ueil = ueil + 1
  return ueil
def UnlockedElementsInTools():
 ueit = 0
 for i in range(len(Tools)):
   if Tools[i] in UnlockedElements:
      ueit = ueit + 1
 return ueit
def UnlockedElementsInPlants():
 ueip = 0
 for i in range(len(Plants)):
   if Plants[i] in UnlockedElements:
      ueip = ueip + 1
 return ueip
def UnlockedElementsInAnimals():
 ueian = 0
 for i in range(len(Animals)):
   if Animals[i] in UnlockedElements:
      ueian = ueian + 1
 return ueian
def UnlockedElementsInHumanity():
 ueih = 0
 for i in range(len(Humanity)):
   if Humanity[i] in UnlockedElements:
      ueih = ueih + 1
 return ueih
def UnlockedElementsInPeriodicTable():
 ueip = 0
 for i in range(len(PeriodicTable)):
   if PeriodicTable[i] in UnlockedElements:
      ueip = ueip + 1
 return ueip
def UnlockedElementsInChemicals():
 ueic = 0
 for i in range(len(Chemicals)):
   if Chemicals[i] in UnlockedElements:
      ueic = ueic + 1
 return ueic
def UnlockedElementsInMachinery():
  ueim = 0
  for i in range(len(Machinery)):
    if Machinery[i] in UnlockedElements:
      ueim = ueim + 1
  return ueim
def UnlockedElementsInStructures():
  ueis = 0
  for i in range(len(Structures)):
    if Structures[i] in UnlockedElements:
      ueis = ueis + 1
  return ueis
def UnlockedElementsInWriting():
  ueiwr = 0
  for i in range(len(Writing)):
    if Writing[i] in UnlockedElements:
      ueiwr = ueiwr + 1
  return ueiwr
def UnlockedElementsInDeath():
  ueid = 0
  for i in range(len(Death)):
    if Death[i] in UnlockedElements:
      ueid = ueid + 1
  return ueid
def UnlockedElementsInFoodAndDrink():
  ueifd = 0
  for i in range(len(FoodAndDrink)):
    if FoodAndDrink[i] in UnlockedElements:
      ueifd = ueifd + 1
  return ueifd
def UnlockedElementsInMath():
  ueim = 0
  for i in range(len(Math)):
    if Math[i] in UnlockedElements:
      ueim = ueim + 1
  return ueim
def UnlockedElementsInSpace():
  ueis = 0
  for i in range(len(Space)):
    if Space[i] in UnlockedElements:
      ueis = ueis + 1
  return ueis
def UnlockedElementsInTransportation():
  ueit = 0
  for i in range(len(Transportation)):
    if Transportation[i] in UnlockedElements:
      ueit = ueit + 1
  return ueit
def UnlockedElementsInModernTech():
  ueimt = 0
  for i in range(len(ModernTech)):
    if ModernTech[i] in UnlockedElements:
      ueimt = ueimt + 1
  return ueimt
def achievements():
  global UnlockedAchievements
  if len(UnlockedElements) > unlockedElementsNumber and (not "And So It Begins" in UnlockedAchievements):
    UnlockedAchievements.append("And So It Begins")
    
  if UnlockedElementsInEarth() > 5 and (not "🪨 A Rocky Start" in UnlockedAchievements):
    UnlockedAchievements.append("🪨 A Rocky Start")
    unlockElement("metal")
    unlockElement("solid")
    
  if UnlockedElementsInFire() > 5 and (not "🔥 Warming Up" in UnlockedAchievements):
  	UnlockedAchievements.append("🔥 Warming Up")
  if UnlockedElementsInWater() > 5 and (not "💧 Sopping Wet" in UnlockedAchievements):
    UnlockedAchievements.append("💧 Sopping Wet")
    unlockElement("liquid")
  if UnlockedElementsInAir() > 5 and (not "💨 Quite A Breeze" in UnlockedAchievements):
    UnlockedAchievements.append("💨 Quite A Breeze")
    unlockElement("gas")
  if "brick" in UnlockedElements and (not "🧱 Bad At Pottery" in UnlockedAchievements):
    UnlockedAchievements.append("🧱 Bad At Pottery")
    unlockElement("ceramics")
  if "hydrogen" in UnlockedElements and (not "🇭 Electrolysis" in UnlockedAchievements):
    UnlockedAchievements.append("🇭 Electrolysis")
    
  if "flood" in UnlockedElements and (not "🌊 The Great Deluge" in UnlockedAchievements):
    UnlockedAchievements.append("🌊 The Great Deluge")
  if "slag" in UnlockedElements and (not "🪨 One Smelter's Trash..." in UnlockedAchievements):
    UnlockedAchievements.append("🪨 One Smelter's Trash...")
    
  if "rust" in UnlockedElements and (not "🔴 A Sanguine Hue" in UnlockedAchievements):
    UnlockedAchievements.append("🔴 A Sanguine Hue")
    unlockElement("iron")
  if len(UnlockedElements) > 49 and (not "💯/2 Semicentennial" in UnlockedAchievements):
    UnlockedAchievements.append("💯/2 Semicentennial")
    unlockElement("life")
  if "sand" in UnlockedElements and (not "🏜️ It Gets Everywhere" in UnlockedAchievements):
    UnlockedAchievements.append("🏜️ It Gets Everywhere")
  
  if UnlockedElementsInScience() > 8 and (not "⚛ Avid Learner" in UnlockedAchievements):
    UnlockedAchievements.append("⚛ Avid Learner")
    unlockElement("information")
  if UnlockedElementsInEnergy() > 5 and (not "⚡ Energetic" in UnlockedAchievements):
    UnlockedAchievements.append("⚡ Energetic")
    unlockElement("motion")
  if UnlockedElementsInLandforms() > 5 and (not "🏞️ Interpid Explorer" in UnlockedAchievements):
    UnlockedAchievements.append("🏞️ Interpid Explorer")
    unlockElement("map")
  if UnlockedElementsInMaterials() > 5 and (not "🧺 Material-istic" in UnlockedAchievements):
    UnlockedAchievements.append("🧺 Material-istic")
    unlockElement("wood")
  if UnlockedElementsInLife() > 5 and (not "🧬 Neophyte" in UnlockedAchievements):
    UnlockedAchievements.append("🧬 Neophyte")
    unlockElement("death")
  if UnlockedElementsInTools() > 5 and (not "🛠️ Tinkerer" in UnlockedAchievements):
    UnlockedAchievements.append("🛠️ Tinkerer")
    unlockElement("tools")
  if "cyclone" in UnlockedElements and (not "🌀 Around And Around" in UnlockedAchievements):
    UnlockedAchievements.append("🌀 Around And Around")
    unlockElement("rotation")
  if "archaea" in UnlockedElements and (not "🦠 You've Seen One Microbe, You've Seen Them All" in UnlockedAchievements):
    UnlockedAchievements.append("🦠 You've Seen One Microbe, You've Seen Them All")
  
  if "multicellular org." in UnlockedElements and (not "🧫 Come Together" in UnlockedAchievements):
    UnlockedAchievements.append("🧫 Come Together")
    unlockElement("vertebrate")
    unlockElement("invertebrate")
    unlockElement("plant")
    unlockElement("fungi")
  if UnlockedElementsInPlants() > 5 and (not "🌱 Room To Grow" in UnlockedAchievements):
    UnlockedAchievements.append("🌱 Room To Grow")
    unlockElement("seed")
  if UnlockedElementsInAnimals() > 5 and (not "🐾 Menagerie" in UnlockedAchievements):
    UnlockedAchievements.append("🐾 Menagerie")
    unlockElement("egg")
  if "insect" in UnlockedElements and (not "🐞 It's Been Bugging Me" in UnlockedAchievements):
    UnlockedAchievements.append("🐞 It's Been Bugging Me")
    unlockElement("arachnid")
  if "whale" in UnlockedElements and (not "🐋 A Whale Of A Time" in UnlockedAchievements):
    UnlockedAchievements.append("🐋 A Whale Of A Time")
    unlockElement("dolphin")
    unlockElement("manatee")
  if len(UnlockedElements) > 99 and (not "💯 Centennial!" in UnlockedAchievements):
    UnlockedAchievements.append("💯 Centennial!")
    unlockElement("human")
  
  if UnlockedElementsInEnergy() > 10 and (not "⚡ You Have The Power" in UnlockedAchievements):
    UnlockedAchievements.append("⚡You Have The Power")
    unlockElement("light")
  if "dinosaur" in UnlockedElements and (not "🦖 Life Finds A Way" in UnlockedAchievements):
    UnlockedAchievements.append("🦖 Life Finds A Way")
    unlockElement("extinction")
  if "fox" in UnlockedElements and (not "🦊 Orange Dog" in UnlockedAchievements):
    UnlockedAchievements.append("🦊 Orange Dog")
  
  if "light bulb" in UnlockedElements and (not "💡 Illuminating Discovery" in UnlockedAchievements):
    UnlockedAchievements.append("💡 Illuminating Discovery")
    unlockElement("idea")
  if "hydrothermal vent" in UnlockedElements and (not "♨️ A Haven For Life?" in UnlockedAchievements):
    UnlockedAchievements.append("♨️ A Haven For Life?")
  if "wheel" in UnlockedElements and (not "🛞 Reinvention" in UnlockedAchievements):
    UnlockedAchievements.append("🛞 Reinvention")
  
  if "death" in UnlockedElements and (not "🪦 Do Not Go Gentle..." in UnlockedAchievements):
    UnlockedAchievements.append("🪦 Do Not Go Gentle...")
    unlockElement("soul")
  if UnlockedElementsInChemicals() > 5 and (not "🧪 Volatile Brew" in UnlockedAchievements):
    UnlockedAchievements.append("🧪 Volatile Brew")
    unlockElement("acid")
  if "ozone" in UnlockedElements and (not "💨 ...Not Any More, There's A Blanket" in UnlockedAchievements):
    UnlockedAchievements.append("💨 ...Not Any More, There's A Blanket")
  if UnlockedElementsInMachinery() > 5 and (not "⚙️ Just Another Cog..." in UnlockedAchievements):
    UnlockedAchievements.append("⚙️ Just Another Cog...")
    unlockElement("machine")
  if "drumstick" in UnlockedElements and (not "🍗 Finger-Licking Good" in UnlockedAchievements):
    UnlockedAchievements.append("🍗 Finger-Licking Good")
    unlockElement("marrow")
  if UnlockedElementsInStructures() > 5 and (not "🏠 Humble Abode" in UnlockedAchievements):
    UnlockedAchievements.append("🏠 Humble Abode")
    unlockElement("house")
  
  if "numbers" in UnlockedElements and (not "🔢 2^8" in UnlockedAchievements):
    UnlockedAchievements.append("🔢 2^8")
    unlockElement("addition")
    unlockElement("inverse operation")
  if UnlockedElementsInWriting() > 5 and (not "✏️ Rough Draft" in UnlockedAchievements):
    UnlockedAchievements.append("✏️ Rough Draft")
    unlockElement("math")
  
  if UnlockedElementsInDeath() > 5 and (not "🪦 ...Into That Good Night" in UnlockedAchievements):
    UnlockedAchievements.append("🪦 ...Into That Good Night")
  if UnlockedElementsInFoodAndDrink() > 5 and (not "🍔 Hungering For More" in UnlockedAchievements):
    UnlockedAchievements.append("🍔 Hungering For More")
    unlockElement("meal")
  
  if UnlockedElementsInMath() > 5 and (not "🔢 2+2=5" in UnlockedAchievements):
    UnlockedAchievements.append("🔢 2+2=5")
    unlockElement("equation")
    unlockElement("point")
  
  if "calculator" in UnlockedElements and (not "🖩 Student's Best Friend" in UnlockedAchievements):
    UnlockedAchievements.append("🖩 Student's Best Friend")
  if "icecream" in UnlockedElements and (not "🍦 冰淇淋" in UnlockedAchievements):
    UnlockedAchievements.append("🍦 冰淇淋")
  if "cake" in UnlockedElements and (not "🍰 Hopefully Not Black Forest" in UnlockedAchievements):
    UnlockedAchievements.append("🍰 Hopefully Not Black Forest")
  
  if len(UnlockedElements) > 299 and (not "🌌 Above And Beyond!" in UnlockedAchievements):
    UnlockedAchievements.append("🌌 Above And Beyond!")
    unlockElement("space")
  if "crust" in UnlockedElements and (not "🌎 Hollow World" in UnlockedAchievements):
    UnlockedAchievements.append("🌎 Hollow World")
    unlockElement("planet")
  
  if UnlockedElementsInLandforms() > 10 and (not "🏞️ Worldwide Voyager" in UnlockedAchievements):
    UnlockedAchievements.append("🏞️ Worldwide Voyager")
    unlockElement("planet")
  if ("pie" in UnlockedElements or "π" in UnlockedElements) and (not "🥧 Element 314.1592653589793238462643383279502884197169399375105820974944" in UnlockedAchievements):
    UnlockedAchievements.append("🥧 Element 314.1592653589793238462643383279502884197169399375105820974944")
    unlockElement("pie")
    unlockElement("π")
  if "bluecheese" in UnlockedElements and (not "🧀 Moon Rocks" in UnlockedAchievements):
    UnlockedAchievements.append("🧀 Moon Rocks")
    unlockElement("moon")
  if "hydrosphere" in UnlockedElements and (not "🌎 All Of Earth's Water" in UnlockedAchievements):
    UnlockedAchievements.append("🌎 All Of Earth's Water")
    
  if "earth(planet)" in UnlockedElements and (not "🌎 Mostly Harmless" in UnlockedAchievements):
    UnlockedAchievements.append("🌎 Mostly Harmless")
    unlockElement("human")
    unlockElement('sphere')
  if UnlockedElementsInAir() > 10 and (not "💨 Blown Away" in UnlockedAchievements):
    UnlockedAchievements.append("💨 Blown Away")
    unlockElement("sky")
  if UnlockedElementsInSpace() > 5 and (not "🌌 Beyond The Karman Line" in UnlockedAchievements):
    UnlockedAchievements.append("🌌 Beyond The Karman Line")
    unlockElement("atmosphere")
  if "graph" in UnlockedElements and (not "📈 X and Y" in UnlockedAchievements):
    UnlockedAchievements.append("📈 X and Y")
    unlockElement("x-axis")
    unlockElement("y-axis")
  if "360°" in UnlockedElements and (not "◯ Full Circle" in UnlockedAchievements):
    UnlockedAchievements.append("◯ Full Circle")
  if "Pluto" in UnlockedElements and (not "♇ Everyone's Favorite Dwarf Planet" in UnlockedAchievements):
    UnlockedAchievements.append("♇ Everyone's Favorite Dwarf Planet")
    unlockElement("dog")
    unlockElement("double planet")
  if "uranus" in UnlockedElements and (not "♅ Nothing Special Here" in UnlockedAchievements):
    UnlockedAchievements.append("♅ Nothing Special Here")
  if "nitrogenice" in UnlockedElements and (not "🧊 Brrrr..." in UnlockedAchievements):
    UnlockedAchievements.append("🧊 Brrrr...")
    unlockElement("absolutezero")
  if "vector" in UnlockedElements and (not "↗️ Direction and Magnitude" in UnlockedAchievements):
    UnlockedAchievements.append("↗️ Direction and Magnitude")
  if "mercury(planet)" in UnlockedElements and (not "☿️ The Planet, Not The Metal" in UnlockedAchievements):
    UnlockedAchievements.append("☿️ The Planet, Not The Metal")
    unlockElement("quicksilver")
  if "browndwarf" in UnlockedElements and (not "☀️ Not Quite Stellar" in UnlockedAchievements):
    UnlockedAchievements.append("☀️ Not Quite Stellar")
    unlockElement("reddwarf")
  
  if "mercury(planet)" in UnlockedElements and "venus" in UnlockedElements and "earth(planet)" in UnlockedElements and "mars" in UnlockedElements and(not "☀️ My Very Educated Mother" in UnlockedAchievements):
    UnlockedAchievements.append("☀️ My Very Educated Mother")
    unlockElement("planetary system")
    unlockElement("innersolarsystem")
  if "eyeball planet" in UnlockedElements and (not "🌓 Eternal Day, Unending Night" in UnlockedAchievements):
    UnlockedAchievements.append("🌓 Eternal Day, Unending Night")
  if "gear" in UnlockedElements and (not "⚙️ ...In The Machine" in UnlockedAchievements):
    UnlockedAchievements.append("⚙️ ...In The Machine")
  if "jupiter" in UnlockedElements and "saturn" in UnlockedElements and "uranus" in UnlockedElements and "neptune" in UnlockedElements and(not "☀️ Just Served Up Nachos" in UnlockedAchievements):
    UnlockedAchievements.append("☀️ Just Served Up Nachos")
    unlockElement("planetary system")
    unlockElement("outersolarsystem")
  if "solarsystem" in UnlockedElements and (not "☀️ Celestial Neighborhood" in UnlockedAchievements):
    UnlockedAchievements.append("☀️ Celestial Neighborhood")
    unlockElement("mercury(planet)")
    unlockElement("venus")
    unlockElement("earth(planet")
    unlockElement("mars")
    unlockElement("jupiter")
    unlockElement("saturn")
    unlockElement("uranus")
    unlockElement("neptune")
  if "J1407b" in UnlockedElements and (not "🪐 Lord Of The Rings" in UnlockedAchievements):
    UnlockedAchievements.append("🪐 Lord Of The Rings")
    unlockElement("browndwarf")
  if "error" in UnlockedElements and (not "❗ File Not Found" in UnlockedAchievements):
    UnlockedAchievements.append("❗ File Not Found")
  if "comic" in UnlockedElements and (not "💬 Bang! Whiz! Pow!" in UnlockedAchievements):
    UnlockedAchievements.append("💬 Bang! Whiz! Pow!")
    unlockElement("story")
  if "server" in UnlockedElements and (not "🌐 Backbone Of The Internet" in UnlockedAchievements):
    UnlockedAchievements.append("🌐 Backbone Of The Internet")
  if "cookie" in UnlockedElements and (not "🍪 Data Collector" in UnlockedAchievements):
    UnlockedAchievements.append("🍪 Data Collector")
  if UnlockedElementsInTransportation() > 5 and (not "🚂 Revving Up Your Engines" in UnlockedAchievements):
    UnlockedAchievements.append("🚂 Revving Up Your Engines")
    unlockElement("car")
  if UnlockedElementsInModernTech() > 5 and (not "💻 Online Newbie" in UnlockedAchievements):
    UnlockedAchievements.append("💻 Online Newbie")
  
  if UnlockedElementsInHumanity() > 5 and (not "🧑 A People Person" in UnlockedAchievements):
    UnlockedAchievements.append("🧑 A People Person")
    unlockElement("communication")
  
  if "orbit" in UnlockedElements and (not "💫 Like A Record Player" in UnlockedAchievements):
    UnlockedAchievements.append("💫 Like A Record Player")
    unlockElement("doubleplanet")
  
  
  
  
  if len(UnlockedElements) == len(Elements):
      UnlockedAchievements.append("And So It Ends")
  
  
viewall = False
elementnumber = False
###########################################################
help = True
hintresult = "?"
#game
def game():
  global menu
  global combine
  global combineList
  global ResultIndex
  global new_element
  global viewall
  global elementnumber
  global help
  global discoveryCredits
  global UnlockedElements
  global Elements
  global hintresult
  
  if menu == "menu":
    print("Menu options:" + str(menuOptions))
    Input = input("Where do you want to go? ")
    if Input in menuOptions:
      menu = Input
      os.system("clear")
      game()
    elif Input == "cheat":
      for i in range(len(Results)):
        if Results[i] == "cyclone":
          print("ecin")
        else:
           print(str(Combinations[i])+" : "+str(Results[i]))
      print("number of combinations " + str(len(Combinations)))
      for i in range(len(Elements)):
        print("#" + str(i) + ": " + str(Elements[i]))
      print("number of elements " + str(len(Elements)))
      Input = input("Type in menu to revert to the normal menu, or type in win to get all elements.")
      if Input == "menu":
        os.system("clear")
        game()
      elif Input == "win":
        for i in range(len(Elements)):
          unlockElement(Elements[i])
        os.system("clear")
        game()
      else:
        os.system("clear")
        game()
    else:
      os.system("clear")
      game()
  elif menu == "Game":
    
    #print(UnlockedElements)
    
    print("Elements to be Combined:"+str(combine))
    print(" ")
    print(str(len(UnlockedElements)) + "/" + str(len(Elements)) + " elements unlocked")
    print(" ")
    print("Discovery Credits: " + str(discoveryCredits))
    print(" ")
    print("Element Groups:")
    
    
    for i in range(len(ElementGroups)):
      
      print(str(ElementGroups[i])+" "+str(GroupSymbols[i]))
    
    #print(str(combine) in Combinations)
    #print(len(combineList))
    combinations()
    print(" ")
    if viewall:
      for i in range (len(UnlockedElements)):
        if elementnumber:
          if UnlockedElements[i] in The_Inaccurate_Periodic_Table:
            print("#" +  str(Elements.index(UnlockedElements[i])+1) + "(chemical element #" + str(The_Inaccurate_Periodic_Table.index(UnlockedElements[i])+1)+ "): " + str(UnlockedElements[i]))
          elif UnlockedElements[i] in The_Planets:
            print("#" +  str(Elements.index(UnlockedElements[i])+1) + "(planet #" + str(The_Planets.index(UnlockedElements[i])+1)+ "): " + str(UnlockedElements[i]))
          else:
            print("#" +  str(Elements.index(UnlockedElements[i])+1) + ": " + str(UnlockedElements[i]))
        else:
          print(UnlockedElements[i])
    
    print(" ")  
    
    if help:
      Input = input("Which elements do you want to combine? Type the name of an element group in to view its elements, and type in clear to clear all elements to combine. Type in menu to leave to the menu. In the menu, you can view your achievements, and get elements as rewards. Type in viewall to view all unlocked elements, and type in hideall to hide all unlocked elements. Type in # to show the element number of each element, and type it again to hide it. You can combine up to 4 elements! Type in help to hide this message.")
    else:
      
      Input = input("Which elements do you want to combine? Type in help if you need any assistance.")
    
    
    if Input in UnlockedElements:
      if len(combineList) > 3:
        combine = ""
        combineList = []
        os.system("clear")
        game()
      elif combine == "":
        combine = str(Input)
        combineList.append(str(Input))
      else:
        combine = str(combine)+" "+str(Input)
        combineList.append(str(Input))
      os.system("clear")
      game()
    elif Input in ElementGroups:
      menu = Input
      os.system("clear")
      game()
    elif Input == "menu":
      menu = "menu"
      os.system("clear")
      game()
    elif Input == "clear":
      combine = ""
      combineList = []
      os.system("clear")
      game()
    elif Input == "viewall" or Input == "view all":
      viewall = True
      os.system("clear")
      game()
    elif Input == "hideall" or Input == "hide all":
      viewall = False
      os.system("clear")
      game()
    elif Input == "#":
      if elementnumber:
        elementnumber = False
        os.system("clear")
        game()
      else:
        elementnumber = True
        os.system("clear")
        game()
    elif Input == "help":
      if help:
        help = False
      else:
        help = True
      os.system("clear")
      game()
    else:
      os.system("clear")
      game()
    
    
  elif menu in ElementGroups:
    combinations()
    #print("Result index " + str(ResultIndex))
    print("Elements to be Combined:"+str(combine))
    print(" ")
    print(str(menu)+str(GroupSymbols[ElementGroups.index(menu)])+str(":"))
    chosenGroup = elementGroup(menu)
    for i in range(len(chosenGroup)):
      if chosenGroup[i] in UnlockedElements:
        if elementnumber:
          if chosenGroup[i] in The_Inaccurate_Periodic_Table:
            print("#" +  str(Elements.index(chosenGroup[i])+1) + "(chemical element #" + str(The_Inaccurate_Periodic_Table.index(chosenGroup[i])+1)+ "): " + str(chosenGroup[i]))
          elif chosenGroup[i] in The_Planets:
            print("#" +  str(Elements.index(chosenGroup[i])+1) + "(planet #" + str(The_Planets.index(chosenGroup[i])+1)+ "): " + str(chosenGroup[i]))
          else:
            print("#" +  str(Elements.index(chosenGroup[i])+1) + ": " + str(chosenGroup[i]))
        else:
          print(chosenGroup[i])
      else:
        print("(locked)")
    
  
    Input = input("Which element do you want to select? Type in # to show the element number of each element, and type it again to hide it. Type back to go back. ")
    if Input in UnlockedElements:
      if len(combineList) > 3:
        combine = ""
        combineList = []
        os.system("clear")
        game()
      elif combine == "":
        combine = str(Input)
        combineList.append(str(Input))
      else:
        combine = str(combine)+" "+str(Input)
        combineList.append(str(Input))
      os.system("clear")
      game()
    elif Input == "back":
      menu = "Game"
      os.system("clear")
      game()
    elif Input == "clear":
      combine = ""
      combineList = []
      os.system("clear")
      game()
    elif Input == "#":
      if elementnumber:
        elementnumber = False
        os.system("clear")
        game()
      else:
        elementnumber = True
        os.system("clear")
        game()
    else:
      os.system("clear")
      game()
  elif menu == "Achievements":
    achievements()  
    
    print("Achievements:")
    for i in range(len(Achievements)):
      if Achievements[i] in UnlockedAchievements:
        print(str(Achievements[i]) + ": " + str(AchievementConditions[i]))
      else:
        print("??? (" + str(AchievementConditions[i])+" to unlock)")
    
    Input = input("Type menu or back to return to the menu.")
    if Input == "menu" or Input == "back":
      menu = "menu"
      os.system("clear")
      game()
  
  elif menu == "Hints":
    hintresult = ("...")
    hrindex = 0
    hrindex = 0
    print("Discovery Credits:"+ str(discoveryCredits))
    print(" ")
    print("Would you like to find:")
    print("- (Type I) An element name for 1 discovery credit")
    print("- (Type II) An element and  the elements needed to create it for 4 discovery credits")
    r = Elements[random.randint(0,len(Elements)-1)]
    while (r in UnlockedElements) or not(r in Elements):
      r = Elements[random.randint(0,len(Elements)-1)]
    hrindex = Results.index(r)
    hcomb = Combinations[hrindex]
    
    Input = input("Type in the number of the hint you want to buy. Type in menu to return to the menu.")
    if Input == "I" and discoveryCredits >= 1:
      discoveryCredits -= 1
      hintresult = (r)
      menu = "Hints Result"
      os.system("clear")
      game()
    elif Input == "II" and discoveryCredits >= 4:
      discoveryCredits -= 4
      hintresult = (str(r) + " can be made with " + str(hcomb))
      menu = "Hints Result"
      os.system("clear")
      game()
    elif Input == "menu":
      menu = "menu"
      os.system("clear")
      game()
    else:
      os.system("clear")
      game()
    
  
  elif menu == "Hints Result":
    print(hintresult)
    Input = input("Type in menu to return to the menu.")
    if Input == "menu":
      menu = "menu"
      os.system("clear")
      game()
    else:
      os.system("clear")
      game()
game()
Previous
Previous

Growing Goo (Part 1)