Introducing - Wordle in MakeCode! šŸ“š

This game adheres to the age rating games project (ARGP) standards.
:green_circle: - this game is suitable for all ages
:face_with_symbols_over_mouth: - 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 :sweat_smile:. 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.

image


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 (:arrow_left:) 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 (:arrow_right:) on the left hand side.

And of course, enjoy the game! After all, it was made with :heart: 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 :beetle:s, please report them so I can bang my head against a wall until I obliterate them :melting_face:

11 Likes

Radical!

4 Likes

This is AMAZING! I love Wordle, and this an EXTRAORDINARY replica of it! Great job!
:partying_face: :clap:

3 Likes

I may have found a bug:
image
There’s supposed to be another I according to the game, but there’s no where for the I to go. :confused:

2 Likes

The game considers the ā€œIā€ as a letter that appears in the word. That means the yellow ā€œIā€ is just pointing to the one that’s in the middle (the one you found the placement of)

3 Likes

Okay, but wouldn’t that make it a little hard to know if there were two I’s?

2 Likes

Hey thanks For using the ARGP standars!

4 Likes

I might update that soon, I’ll see how the real game handles it.

1 Like

I love the effort- I suck at these spelling games but it is so cool to see you manage 12 THOUSAND words in one game!

2 Likes

I thought Wordle in Makecode sounded familiar…

1 Like

How did I get a curse word on my first try… My luck is just crazy  ̄^ ̄

1 Like

wild.

1 Like

What? Could you reference the word? You can censor it, but I need to find this word and eliminate it. As I was saying, I’m working on scrubing the dictionary at the moment.

2 Likes

I got the word Vaped I know its not a bad word necassarily, but its not the best thing to show younger children (played this with my little sibs)

1 Like

Yeahh… I don’t think it’s critical. I understand the concern about topics like that but I don’t find it super vulgar. That’s also why I put the disclaimer at the top. While the game is SFW, it might contain some not-so-great words. I’m mainly worried that a swear or otherwise vulgar word is left in

2 Likes

I took a picture of it, but right before posting the image, I realized the word was a different meaning than what I expected… (I checked the word multiple times in my super thicc dictionary :sweat_smile:)

Also, you shouldn’t ask people to post curse words, even if they are censored, cause people would know the meaning anyways…

1 Like

Well, how else am I supposed to do anything about it? It’s not mean in an insulting way or anything, we all know it’s being posted in good faith in order to help with removing it. Also, the first two letters would have been enough for me to search for it, but I digress

2 Likes

(Just mentioning that this is such a complicated topic, perhaps moving to Age rating games on the forums would keep this clutter out of the Wordle discussion?)

2 Likes

I have a feeling it’s still relevant here as a part of my game

2 Likes

Sure!

2 Likes