Page 2 of 3

Re: Wordie - an open source Wordle implementation

Posted: Fri May 20, 2022 5:06 pm
by milon
pgimeno wrote: Fri May 20, 2022 1:04 am It's crashing because `pointer` (as a gui element) lacks w and h.
Well that's embarrassing. Thanks for catching that! I guess I never actually clicked on it myself. Fixed! Updated version is in OP and also linked here:
download/file.php?id=21119

Touch (AKA click) doesn't seem to work right now, as tested on my Android. I don't anticipate having time to investigate that for a while, though.

EDIT - I forgot to ask, for pgimeno & anyone else who has looked at the code, what are your thoughts about the organization & style? I tried a different approach with this project. It's a more callback-centric layout and it's forced me to be more careful with scope & globals.

Re: Wordie - an open source Wordle implementation

Posted: Fri May 20, 2022 11:13 pm
by pgimeno
I don't usually give style advice. I would do some things differently, but that does not mean better.

Since you mention globals, though, I found a global that seems to be global by mistake, namely `offset` in function guesses.redraw().

Re: Wordie - an open source Wordle implementation

Posted: Tue May 24, 2022 2:17 pm
by milon
pgimeno wrote: Fri May 20, 2022 11:13 pm I don't usually give style advice. I would do some things differently, but that does not mean better.

Since you mention globals, though, I found a global that seems to be global by mistake, namely `offset` in function guesses.redraw().
Thanks for catching that global. Definitely a mistake - copypasta from other functions where 'offset' was a given argument. :3 But I'm working on phasing that out anyway.

About coding style - I'm not too concerned about 'different' (I agree - different is typically fine), but if you see potential problems or a more robust way to code things, I'm all ears. I'll also admit to being curious about how others would do things differently in the big picture, but I'm not planning on changing that for this project.

Side note: I tweaked the game_state logic so object.w/h aren't needed for objects that don't define click() etc. I'll post a new .love when I have a more to show. Probably not soon. ;)

Re: Wordie - an open source Wordle implementation

Posted: Sat Jun 18, 2022 7:15 am
by Mail_isSWAG
Nice!

Re: Wordie - an open source Wordle implementation

Posted: Thu Jun 23, 2022 6:09 pm
by milon
New version!

Changes include:
- proper touch support
- on mobile, it automatically chooses fullscreen portrait
- background music (undecided if placeholder or final; open to suggestions)
- a few tweaked visuals

Here's how it looks now (updated in OP too):
Image

I've also begun tinkering with sound effects, but those aren't in this version.

Re: Wordie - an open source Wordle implementation

Posted: Sat Jun 25, 2022 2:28 am
by Gunroar:Cannon()
I'm not sure how to play (and considering I didn't know what wordle was until a few days a go that may be my fault :? )

Re: Wordie - an open source Wordle implementation

Posted: Sat Jun 25, 2022 1:00 pm
by BrotSagtMist
Dont worry. i have no idea what to do either.

Re: Wordie - an open source Wordle implementation

Posted: Sat Jun 25, 2022 4:25 pm
by pgimeno
In short: "Mastermind"-like but with English words.

Grey means letter not present, yellow means letter present but in the incorrect position, and green means letter in the correct position. The guesses must be valid English 5-letter words, you can't try just any combo. In the last screenshot, the hidden word has an I in the centre, plus an N and an R. The R does not go in the centre (obvious anyway, because it's an I) and the N does not go in the last place. The hidden word may contain more I's, N's and R's.

Re: Wordie - an open source Wordle implementation

Posted: Sat Jun 25, 2022 4:44 pm
by BrotSagtMist
I dont get any colours.
And i dont think return is working.

Re: Wordie - an open source Wordle implementation

Posted: Sat Jun 25, 2022 8:57 pm
by Andlac028
It must be valid English 5-letter word to work