sep 26 2024
for my free friday project, i made a sylladex modus, based on integer division.
it’s very similar to dave’s hash map modus, adding up numbers based on the letters in the word and dividing them to fit in the sylladex.
i created a default sylladex (above), and an input area with couple commands (below)
as described above, when you put in a number, it will take that number, integer divide it by the number of used spots in your sylladex, and then it will mod it by the total number of spaces in your sylladex.
the reset command specifically was difficult, due to an issue with lists in Python.
originally, i tried setting the sylladex to its original value (below)
elif cmd.lower() == "reset sylladex":
sylladex = ["Sburb", "Burnt Apple Pie", "Spare Sunglasses", "", "", "", "", "Apple"]
but that didn’t work. i asked for help from my teacher, and he told me about how to properly copy lists using the [:] list index.
Leave a Reply