So I’m making a scrabble game, basically, and I need the system to know if the user wrote a real word or not. For these kinds of things what is most useful is to check a dictionary of sorts, but I’m in the clueless spot and, honestly, I’m on vacation but I want to have something that I can use later on.
The idea is that this kind of problem can be solved easily, or I just can’t and God damn it.
My original idea was to use a page like this one but I, do, not, understand, html so I don’t know how to use html. I know there are functions to extract info from the internet, but I don’t understand how I could use it.
the other one that could happen is for there to be a Lua function that checks if the word exists.
thelother one, well, just copy paste a dictionary of all the words that exists.
Ok I got some code running and such, it’s working fine. I put a word and it checks if it exists, but it has to modify the https address that is being used.
And because it modifies the https address, if the player puts a right word it will check it all fine, but if it puts a wrong word it sends an error.
So how could I check to see that, if the https address sends an error, it just ignores and tells the system “hey, the page doesnt exist, so return false”?
(Update: I just learned what pcalls are)
Ight I used a pcall and it solved everything. Thanks to you two.