CPCWiki forum

General Category => Programming => Topic started by: arnolde on 09:04, 06 February 22

Title: The inevitable CPC Wordle Clone...
Post by: arnolde on 09:04, 06 February 22
...is nearly done.
I plan to include word lists in english, spanish, french and german – but I don't have most of them yet... Anyone out there willing to hlep?


https://twitter.com/leosoftCPC/status/1490088486233333763 (https://twitter.com/leosoftCPC/status/1490088486233333763)
Title: Re: The inevitable CPC Wordle Clone...
Post by: Skunkfish on 17:21, 06 February 22
My wife's been obsessed with this on her phone for the last couple of weeks, I'm waiting for the CPC version now!
Title: Re: The inevitable CPC Wordle Clone...
Post by: eto on 18:27, 06 February 22
I was considering this just last week but I couldn't find a list of German words that makes sense. Most lists contain 70%+ words I would never use or haven't heard of ever. Not sure where to get a useful list from.
Title: Re: The inevitable CPC Wordle Clone...
Post by: arnolde on 20:03, 06 February 22
Quote from: eto on 18:27, 06 February 22Most lists contain 70%+ words I would never use
But in comparison to other languages, there are just a "few" 5-letter words in german, ~6.500. French has ~8.000 and english 9330. (I'm speaking of all the words valid in Scrabble, so no proper names, but all inflected forms, i.e. "GEHST" or "ZUSAH")
Title: Re: The inevitable CPC Wordle Clone...
Post by: Nich on 22:24, 06 February 22
Quote from: eto on 18:27, 06 February 22
I was considering this just last week but I couldn't find a list of German words that makes sense. Most lists contain 70%+ words I would never use or haven't heard of ever. Not sure where to get a useful list from.

You could try the Hunspell dictionaries (https://github.com/LibreOffice/dictionaries) that are used by LibreOffice. However the words are not stored in a basic list format, so you'll need to write a script to apply prefix and suffix rules to each word in the list; this man page (https://helpmanual.io/man5/hunspell/) explains the format that Hunspell uses.
Title: Re: The inevitable CPC Wordle Clone...
Post by: Nich on 22:28, 06 February 22
I've been playing Wordle every day for the last few weeks, and I was considering developing a CPC version myself, possibly for #CPCRetroDev if I could get permission from Josh Wardle to use the Wordle name. Then I read a few days ago that the New York Times has acquired Wordle (https://www.bbc.co.uk/news/business-60208463), which unfortunately scuppered those plans. :(
Title: Re: The inevitable CPC Wordle Clone...
Post by: arnolde on 22:57, 06 February 22
Quote from: Nich on 22:28, 06 February 22hen I read a few days ago that the New York Times has acquired Wordle,
OMG, does that mean I'm gonna be sued for publishing my version for free?

PS.: For the #CPCRetroDev, I already have a bigger project in the oven...
Title: Re: The inevitable CPC Wordle Clone...
Post by: Nich on 23:01, 06 February 22
Quote from: arnolde on 22:57, 06 February 22
OMG, does that mean I'm gonna be sued for publishing my version for free?

PS.: For the #CPCRetroDev, I already have a bigger project in the oven...

I suppose there are already countless free remakes of Wordle out there and the NYT couldn't go after every single one of them, but in the context of #CPCRetroDev, I think any remake of Wordle would be disqualified as the University of Alicante can't take any legal risks. One such entry, Dr Roland, was disqualified from the 2020 contest because it was too similar to Dr Mario.
Title: Re: The inevitable CPC Wordle Clone...
Post by: villain on 21:02, 07 February 22
There was a similiar topic in the german Forum64. They mentioned this site:


http://www.sobiki.de/5buchstaben.html (http://www.sobiki.de/5buchstaben.html)


Looks quite useful (obwohl da auch noch vereinzelt Quatsch dazwischen ist)
Title: Re: The inevitable CPC Wordle Clone... FIRMWARE HELP NEEDED
Post by: arnolde on 09:21, 11 February 22

So, apparently, i'm too stupid to use the Casette/Disk operationes of the firmware. This is my code to load the dictionary (word list) in the game after asking for the language:



call #bc65 ;cas initialize
pop hl ;pointer to filename is on stack
ld b,11 ;length
ld de,#1c00 ;buffer adress
call #bc77 ;cas in open
jp nc,0 ;brutal, but it's just for now
ld hl,#2000 ;dest adress
call #bc83 ;cas in direct
call #bc7a ;cas in close



If I compile it directly to the emulator in WinAmp, using a 6128 with no extra ROMs, it does the job as expected and loads the dictionaries from disk. But if a save the game as executable bin (org #1000 btw) and run it directly from disk, it starts OK, but at this point asks me to "Press PLAY then any key", as if i'd use a tape drive. Is there any extra firmware call to "remind" Amsdos to use the disk routine in the ROM – or what am I doing wrong?   

Title: Re: The inevitable CPC Wordle Clone... FIRMWARE HELP NEEDED
Post by: Axelay on 13:17, 11 February 22
Have you had a look at this?


https://www.cpcwiki.eu/index.php/Programming:An_example_loader

Title: Re: The inevitable CPC Wordle Clone... FIRMWARE HELP NEEDED
Post by: MaV on 23:30, 11 February 22
From the top of my head:
cas initialize is never patched by the floppy rom to point to a floppy initialisation routine which does not exist anyway. So by using it you're resetting the CPC to use the cassette routines. Unless you'd like to switch between disk and tape loading/saving, just omit this call.
Title: Re: The inevitable CPC Wordle Clone... FIRMWARE HELP NEEDED
Post by: Johnny Olsen on 01:44, 12 February 22
You need to initialize the disc rom.

154 #BCCE KL INIT BACK Initialize a particular background ROM.

        ld c,7
        LD HL,&b0ff
        LD DE,&0040   
        call &bcce

If I remember correctly, this is the way to do it.
Title: Re: The inevitable CPC Wordle Clone... FIRMWARE HELP NEEDED
Post by: MaV on 11:10, 12 February 22


He uses a CPC 6128. There's no need to initialise the Floppy ROM, he should omit the cas initialize, and the CPC handles the loading all by itself correctly.
Title: Re: The inevitable CPC Wordle Clone
Post by: arnolde on 13:02, 12 February 22
Well, thank you all, both MaVs and Johnny Olsens ideas worked... kind of.  :-*
In the loader (the "disk" executable with logo and jingle which loads and executes the game itself), I did have to use Johnnies patch for the game to load correctly from disk.
In the game itself, it was enough to omit the "cas initialize" call for loading the dictionnary from the disk.
I know I should take my time someday to try and understand how exactly all that Amsdos stuff works, but for now, I'm happy that I can finally ask if...
Title: Re: The inevitable CPC Wordle Clone... Beta testers?
Post by: arnolde on 13:03, 12 February 22
...Anyone wants to beta test?
Title: Re: The inevitable CPC Wordle Clone...
Post by: MaV on 14:26, 12 February 22
Quote from: arnolde on 13:02, 12 February 22Well, thank you all, both MaVs and Johnny Olsens ideas worked... kind of. 
Ah yes, Johnny Olsen is right. If you make the binary executable and start it with run, you need to initialise the floppy ROM again. Sorry, I missed that part when reading (I was concentrating on the code).
Title: Re: The inevitable CPC Wordle Clone...
Post by: Gryzor on 05:06, 17 February 22
I don't even know how to play this

Will it post on Twitter? 😅
Title: Re: The inevitable CPC Wordle Clone...
Post by: arnolde on 09:53, 18 February 22
Quote from: Gryzor on 05:06, 17 February 22Will it post on Twitter?

Well, that gives me an idea...

Anyhow, quick update: Thanks to Beta tester Nich (https://www.cpcwiki.eu/forum/profile/?u=53 (https://www.cpcwiki.eu/forum/profile/?u=53)), I got a new suggestions that I'd like to implement, but unfortunately, I also have a life (and just one), so that could take some time... I'll keep you posted 
Title: Re: The inevitable CPC Wordle Clone...
Post by: merman on 12:51, 20 February 22
Look forward to this
Title: Re: The inevitable CPC Wordle Clone...
Post by: arnolde on 19:48, 25 February 22
Update: It's done (I hope...)
https://www.cpcwiki.eu/forum/games/wordle-cpc/
Powered by SMFPacks Menu Editor Mod