dkl
Full Member
Posts: 234
|
Post by dkl on Jan 18, 2022 0:51:26 GMT -5
Here is my version of Wordle with GUI, colour coded feedback and some sound (should really rename it!)
Usual Wordle rules - Only input Valid words - Only 6 guesses Green = Correct Letter/Position Violet = Correct Letter/ Incorrect position Rose = Incorrect Letter Use mouse/trackball or stylus to input letters Click 'Start' to begin! 'Delete Line' button will remove ENTIRE line as long as you have entered less than 4 letter Checking Word is Autorun after 5th letter is entered if valid word then usual placing feedback if invalid word - line is deleted Feedback is also displayed on the keyboard
I have fully tested and found no problems, so hope this is the case please let me know if there are. Just unzip the folder and run the .BAS file
ENJOY.
|
|
|
Post by tsh73 on Jan 18, 2022 4:49:14 GMT -5
Tried once. Works OK for me. The way it clears words not in a dictionary is surprising in a good way. The way it refuses to close by ordinary [x] top right is just surprising .
|
|
dkl
Full Member
Posts: 234
|
Post by dkl on Jan 18, 2022 5:20:29 GMT -5
Thank you for taking the time, much appreciated.
Glad there isn't a problem ...... yet! Yes, I was pleased that the trapclose statement worked.
I still don't understand the use of globals. If I don't name in 'global' ALL my sound files (centre line in global) they don't work! The only one that does is the very first one when you click Start.
Many of the arrays/strings won't work unless I list them either. Yet one is continually told they are global by default?
|
|
|
Post by Rod on Jan 18, 2022 6:43:21 GMT -5
I think tsh73 meant surprising in a bad way. The top cross is meant to stop the program and there seems no other way? Also you might check that get the meaning does not disclose the answer unless it has been guessed.
|
|
|
Post by tsh73 on Jan 18, 2022 6:58:34 GMT -5
Yes arrays are global, and it cannot be changed. Never heard of strings being global, it is definitely not.
It looks like you don't have many arrays? only
Dim Wd5$(Wcount)
And for LB, x() and x are two completely different variables so sub submitWord Wd$,Wd5$ does not actually pass array or use passed "Wd5$"
|
|
|
Post by tsh73 on Jan 18, 2022 7:26:19 GMT -5
Not really bad, just surprised What's one is nice! )) Easy fix is to rename "Get word meaning" to "I give up" until word is uncovered
|
|
|
Post by Rod on Jan 18, 2022 11:21:28 GMT -5
The graphics are nice. We don’t often see much effort on that front so well done, nice look and feel.
|
|
dkl
Full Member
Posts: 234
|
Post by dkl on Jan 18, 2022 20:44:27 GMT -5
The programme does close if you Click ‘Close and Rerun’ I need to rename the button. It’ll close the programme and you have to manually rerun for another game.
Good idea about the ‘word meaning ‘ button. I’ll ‘hide’ (or disable) the button until the word has been guessed
So all strings have to be made global? Because if I don’t do that most the programme won’t work. I realise that variables have to be declared
Thank you for all the help and positive feedback.
|
|
dkl
Full Member
Posts: 234
|
Post by dkl on Jan 18, 2022 23:54:34 GMT -5
I've made the few adjustments suggested above and posted the updated version at the link above
|
|
|
Post by dan1101 on Jan 19, 2022 7:10:51 GMT -5
Outstanding program! It plays the game very well. There are a couple things I noticed that might merit further tweaking.
After the game ends, if you click the Start button, it begins a new game with a new random word, but does not clear the previous game. It is possible to play another game on top of the first, and even win, but the display shows the results of BOTH the previous game and the new game, intermixing the keyboard colors between the two games, which makes it very confusing.
After finishing a game, if you click on a key on the keyboard display, one of two things happens. If you lost the game, it crashes out rather than shutting down in a controlled manner. If you won the game, it allows you to replay the last word, endlessly.
Adding a "Play Again" button would be nice, possibly simply by changing the text on the start button to "play again" after the first game, and clearing the game display.
This is really a terrific game. Thank you for sharing it.
|
|
|
Post by tsh73 on Jan 19, 2022 14:48:57 GMT -5
It is possible to ask defintion of second word I tried to debig that and it dies in sub buttonClick1 on line #sf$,Letr1$(y,x) where sf$ contains #gr.71 Obviously it just finished all 6 rows and came to 7th... which is not here, OOPS Last thing. Does it takes significant time from start to open window? (may be it's just on my netbook) If so you can move loading bitmaps and loading dictionary AFTER openinng window This way window will appear much faster. (2.3 sec to 0.6 sec)
|
|
dkl
Full Member
Posts: 234
|
Post by dkl on Jan 19, 2022 16:32:22 GMT -5
Many thanks for that feedback Dan, I was aware off some of the things you mention and will look into them all. I agree it would be nice to be able to play again and not have to restart To have to suffer the ‘WORDLE’ graphic every time is a big annoying! Many thanks for your positive feedback. tsh, yes is slow starting, I wasn’t aware one could move that info until after the open command so will definitely look at that as well as the other things you mention I am not particularly happy with Rnd(0) command which I have found constantly comes up with the same words! I tried your version - tsh - (which is the same as my original one - not shown in prog) and it came up with the Same words all the time. Which made me think that there must be something in the programme influencing it. I have checked my variables but cannot see what could be causing the problem. The rnd(0) version I am using at the moment is not quite as bad and more random as the idea is to adjust the starting number and limit the area of words to choose from. It does need improvement though.
|
|
dkl
Full Member
Posts: 234
|
Post by dkl on Jan 20, 2022 6:13:46 GMT -5
OK.....All of the suggestions discussed above have been put into practise with the exception of clearing the keyboard which worked fine, but then the game crashes, so please bare with me while I fix my error. There's a problem with the event handler! It's obviously trying to display using an unknown #gr. but I can't see what I've done wrong!
In the meantime, for anyone interested (?) I've got a SPANISH version up and running! Want to improve your Spanish, Amigo? If it become fully functionable, I'll probably combine the two and maybe add FRENCH as well?!!
|
|