Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 08:29 12 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Wordle Program for CMM2

Author Message
William Leue
Guru

Joined: 03/07/2020
Location: United States
Posts: 405
Posted: 02:40am 12 Jan 2022
Copy link to clipboard 
Print this post

"Wordle" is a word guessing game that has become very popular here in the states with both web and phone version. You try to guess a game-generated 5-letter word by entering your own 5-letter words and looking at the color-coded feedback. It's pretty addictive!

My version for the CMM2 plays the same as the other versions, except that it probably uses a different dictionary. The dictionary I use derives from one published by Don Knuth ages ago, and contains about 5700 words, not ALL of the 5-letter English words by far, but enough.

Enjoy!
-Bill


Wordle.zip


 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1639
Posted: 09:14am 12 Jan 2022
Copy link to clipboard 
Print this post

@Bill,

Thanks for that. Maybe I can get my grandson interested. He's not a good speller (takes after me).

My only concern is that the dictionary may contain some words that use American spelling and confuse him. Maybe I can run a spell check program over it.

Bill
Keep safe. Live long and prosper.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10240
Posted: 09:15am 12 Jan 2022
Copy link to clipboard 
Print this post

  Quote  My only concern is that the dictionary may contain some words that use American spelling and confuse him. Maybe I can run a spell check program over it.


Get rid of "color" for a start  

Nice program  
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5058
Posted: 09:25am 12 Jan 2022
Copy link to clipboard 
Print this post

Nice,

In Netherlands this game is called "Lingo". And it is a show on TV as well.

Volhout
PicomiteVGA PETSCII ROBOTS
 
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1329
Posted: 12:06pm 12 Jan 2022
Copy link to clipboard 
Print this post

Nice game Bill (Leue). I'd heard of this and thought it would be a good educational thing for kids too. Never played it before but I did manage to win my first try - took five words and about 15 minutes but I got there!

Thanks for your effort.

Greg
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4038
Posted: 12:55pm 12 Jan 2022
Copy link to clipboard 
Print this post

Reminds me of Bulls and Cows.

John
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4302
Posted: 01:13pm 12 Jan 2022
Copy link to clipboard 
Print this post

Now if only Jiri would fix the "like" button on CMM2.fun - poke, poke, poke  .
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
William Leue
Guru

Joined: 03/07/2020
Location: United States
Posts: 405
Posted: 03:40pm 12 Jan 2022
Copy link to clipboard 
Print this post

Sorry about the US spelling! I am using a word list I found on the web, originally compiled by Don Knuth. It contains about 7500 words, but English (some version of it) reportedly contains more than 12,000 5-letter words.

The word file is just a text file, so you can easily change it; the program only cares about 2 things: the name of the file and its structure: each 5-letter word is standard ASCII with a 2-character delimiter. The program doesn't care what the delimiters are, just that they are 2 characters; in other words, the program assumes 7 bytes per word when it computes an offset for SEEK.

I will see your COLOR and raise you an ALUMINIUM!  
-Bill
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1639
Posted: 07:52pm 12 Jan 2022
Copy link to clipboard 
Print this post

  Quote  Get rid of "color" for a start

Sorry but that made me laugh  

Bill
Keep safe. Live long and prosper.
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5058
Posted: 03:25pm 10 Feb 2022
Copy link to clipboard 
Print this post

Hi William,

If you (or anyone else) is interested, I made a Dutch dictionary for this magnificent program. Only the dictionary file name and size (number of words) must be changed in the basic program.

Regards,

Volhout
Edited 2022-02-11 01:27 by Volhout
PicomiteVGA PETSCII ROBOTS
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025