Nerdle

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8425
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Nerdle

Post by netmaestro »

Nerdle, the Wordle for nerds!
It is a clone of the popular New York Times Wordle game and works exactly the same. It's very simple to play:

There is a hidden 5-letter word that is the solution for the play.
There is no mouse involvement in the game at all.
Place letters A-Z from the keyboard and when your try is ready, hit Enter.
Your word will be tested and the result will show in the tiles on the current line as follows:

Dark gray tile: Letter is not in the word
Yellow tile: Letter appears in the solution but your placement is wrong
Green tile: Letter appears in the solution in the place you put it

Just because you have one green or yellow tile on your playing line doesn't mean there aren't more of them in the solution too

The keyboard at the bottom is not a touch keyboard, it serves as a legend to tell you what letters you've used and their status, just like on the playing lines. It's very helpful when you're coming up with your next try.

You can shut the game down at any time and the next time you run it it will pick up where it left off. No need to minimize it to keep your place.

Put the exe in a folder on your machine and it will just run from there. It makes an .ini file for itself in the same folder to store useful info like words you've had before (so it doesn't use them again) and your place in the current game to restore it. The current solution word is in there too but it's in Base64 format so you can't open the .ini and just read it.

//TODO:
-Make a help file with this info in it
-Make a stats page that shows after every play to keep track of your solving results over time
-Make the keyboard clickable with the mouse and add Enter and Back keys to it

Get it here: viewtopic.php?t=79863

There are currently 3120 common english words in the list so feel free to get hooked on it! With the NYT Wordle game you are restricted to one play every 24 hours. With this one you can just sit and play until your eyes glaze over.
Last edited by netmaestro on Thu Sep 22, 2022 9:05 am, edited 6 times in total.
BERESHEIT
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8425
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: Nerdle

Post by netmaestro »

I'm having hair-pulling-out difficulties with this file. Windows Defender thinks it's got a virus in it and the only way I can download and keep the file without Windows torching it is to turn real-time protection off. If I do that and restart my computer, the stupid OS just turns it on again.
Anyway, enough ranting. The program is updated now so the keyboard works with the mouse. I'm posting the code in T and T now in case anyone else is having these problems.
BERESHEIT
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: Nerdle

Post by BarryG »

No warnings from Windows Defender here (Win 10 Pro). All good! Thanks for sharing.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8425
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: Nerdle

Post by netmaestro »

I just uploaded a3. a2 had an older file in it and it didn't color the keys.
BERESHEIT
User avatar
idle
Always Here
Always Here
Posts: 5042
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Nerdle

Post by idle »

I was just about to ask that. thanks
Joris
Addict
Addict
Posts: 885
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Re: Nerdle

Post by Joris »

Here are warnings from Windows Defender (also Win 10 Pro). Can't run the game.
The explenation tells me that game is very similar to "Memory".
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8425
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: Nerdle

Post by netmaestro »

You can download the source from T and T then there's no problem
BERESHEIT
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8425
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: Nerdle

Post by netmaestro »

Update: I gave up on the exe and the link is changed to where the code is in T and T
BERESHEIT
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: Nerdle

Post by BarryG »

Was the exe 32-bit? If so, try building as 64-bit because that gives no false-positives for me with my own apps.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8425
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: Nerdle

Post by netmaestro »

The exe was indeed 32bit. I took your suggestion and compiled it in x64. I initially thought it didn't help as Win11 flagged it and vaporized it but then I realized it was compiled to the same name as the previous x86 file that it had flagged before. It just saw the name and torched it. I compiled it under a new name, uploaded it and downloaded it and apart from the OS complaining that it's not commonly downloaded and I shouldn't run it all went well (after I made Windows run it anyway). So excellent tip, thanks for that.
BERESHEIT
Post Reply