DISCLAIMER - I put this in scripting support because I wasn’t sure if it would fit in any other category.
I’m currently working on a word game called “Ghost”, which is based on the real-life version of the game.
Ghost explanation, in case you don't know.
Basically, everyone gets in a circle (or in this case, the game), and someone says the first letter. You then go down the perimeter of the circle and every next person says a letter of the word. Nobody knows what everyone else is trying to spell, but you have to continue the word with a letter that makes sense.
If you’re the person who says the last letter of the word, the next person in line can get you out. If someone doesn’t know what word is being spelled, they can bluff and say a random letter that might make sense to the next person in line. If the next person catches this, they can ask them “What word are you trying to spell?”, and if the first person would be out.
I was heavily inspired by the games “WTW - What’s the word?” and “Word Bomb”.
I found a searching algorithm that can be used to search through massive tables to find a specific entry. I already have this setup, and now I just need the table.
I was planning on just having a table with every single English word. But this is where the logistical problem comes in. I’ve found a website that has every single word in English here.
The issue is that I don’t know how to get all of those words into the table with the proper formating. I’m hoping someone might be able to help me with this unless I want to write an AutoHotkey script and run it for hours on end to syntax it all.
Here’s what I mean:
Proper syntax -
local foo =
{
"word1",
"word2",
"word3",
...
}
Improper syntax, which is where I’m at now. -
local foo =
{
word1
word2
word3
...
}
If anyone has any other suggestions on what I should do besides putting a bunch of English words into a table, please inform me of that too!