This game adheres to the age rating games project (ARGP) standards.
- this game is suitable for all ages
- This game might contain profanity - unfiltered words)
So, Iāve been busy with school and some other stuff recently, but I should be more active now, especially with @Uniqueās UAT 2 approaching on 2023-05-11T04:00:00Z.
Sooo⦠it looks like @AlexK made the game way back in 2022, and I just didnāt know . I found this out while writing this post
But anyway, Iām sure almost everyone is famliar with the hit game Wordle. If youāre not, allow me to cover the basic rules and the gist of the game.
Rules of the game
Wordle is a game about guessing words. Each day, a new 5 letter word is generated. You are given 6 attempts to guess the word using real English words. After entering each word, the letters will be marked yellow if they appear in the word somewhere, and green if they are in the correct spot.
Now, for my implementation of the game. The dictionary I used is a direct port of the one found in the original game, which is something Alexās game didnāt accomplish. 12,000+ words are available as legal words, and about 600 or more are available as picks for the ātarget wordā.
All of the words are stored in words.ts
, within the variables legalWords
(all legal words to enter) and gameWords
(which get selected as the word youāre guessing). The lists i downloaded contained some vulgar words too, and while I did my best to scrub them, I might have missed some. If you find any, please report their line number so I can remove them ASAP!
How does the game work?
The game will generate a random word from itās dictionary every time you start the game. If you end a game (guess the word or run out of guesses), the word you played will be removed from the list of target words. If you use them all up somehow, the game will reset the list.
I also created a custom keyboard for ease of use. Note that the key will also get colored according to the above mentioned standards. You can also erase the last letter using the Backspace key () on the right hand side, or by pressing B (ENTER) as a shortcut.
To submit the typed word as a guess, press the Submit key () on the left hand side.
And of course, enjoy the game! After all, it was made with in MakeCode.
Future plans
For now, Iām guessing the game is absolutely unplayable on hardware, and thereās no doubt about it. I donāt want to even try it, because I donāt want my PyGamer to explode.
The huge variables holding the words are definitely hogging the memory, and the game concurrently loads 88 sprites on startup. For hardware, Iām looking to some optimisations on this list, sooner or later in no particular order so I can (hopefully) get this running on hardware.
- Encode words in a static image to save space
- Remove the
usedWords
setting (sacrifice convenience for functionality) - Render the board, keys and title as a part of the background image
Oh, and I donāt know how stable this actually is⦠I kind of just mashed it together, so if you find any s, please report them so I can bang my head against a wall until I obliterate them