Re: The comp.sys.sinclair Crap Games Competition 2021: 25th edition extravaganza!
Posted: Mon Aug 30, 2021 11:49 pm
CALLING ALL EXPERT QL PROGRAMMERS!
I have a Crap Game Challenge specifically for you! And it'll be quite un-Crap if any of you can pull it off.
Today, Jamie Bradbury has sent me Zoggle, a completely reworked version of his Z88 Boggle from earlier in the year. What it does do is display a grid of 16 letters chosen from a bank of 96 (although it should do so in groups of six, it appears... not to). What is does not do is play Boggle - it's left to the two human players to do that with a pen and paper.
Jamie does say in the accompanying README.md file (which comes straight from GitLab - no idea what the .md extension is all about) that he does intend to make it possible to play human-versus-Z88... but it's going to involve a huge word list. Think of all the words that could be theoretically possible from the pool of letters available - some of which are 17 letters long if the combined "Qu" is showing - and that's going to take an equally huge amount of memory to store.
And that's where I thought the QL could come in. This is a machine not limited to a piddling 128K, after all. Displaying the game grid could be done in 16 pre-defined windows, scrambling the dice and loading them into the grid seems to me like a simple bit of array manipulation... but the algorithms to actually get the computer to scan through the letter cubes that are available, the way a human player would, and assess if the combination matches any word in the bank... that's a bit more of a tricky proposition.
Is there someone here who'd be up to the challenge? Or could it be a joint effort? If so, stand up and be counted!
EDIT: look at the time of this post. It's now just short of 1 am and I've already made the skeleton of a Boggle game, at least the bit that throws the dice. Most of that time was spent setting up the screen rather than getting the arrays to work. This bit is really easy - I've done it in an hour. Now, somewhere out there, there's a published list of Boggle-appropriate words, which a quick internet search might well reveal. Mush!
I have a Crap Game Challenge specifically for you! And it'll be quite un-Crap if any of you can pull it off.
Today, Jamie Bradbury has sent me Zoggle, a completely reworked version of his Z88 Boggle from earlier in the year. What it does do is display a grid of 16 letters chosen from a bank of 96 (although it should do so in groups of six, it appears... not to). What is does not do is play Boggle - it's left to the two human players to do that with a pen and paper.
Jamie does say in the accompanying README.md file (which comes straight from GitLab - no idea what the .md extension is all about) that he does intend to make it possible to play human-versus-Z88... but it's going to involve a huge word list. Think of all the words that could be theoretically possible from the pool of letters available - some of which are 17 letters long if the combined "Qu" is showing - and that's going to take an equally huge amount of memory to store.
And that's where I thought the QL could come in. This is a machine not limited to a piddling 128K, after all. Displaying the game grid could be done in 16 pre-defined windows, scrambling the dice and loading them into the grid seems to me like a simple bit of array manipulation... but the algorithms to actually get the computer to scan through the letter cubes that are available, the way a human player would, and assess if the combination matches any word in the bank... that's a bit more of a tricky proposition.
Is there someone here who'd be up to the challenge? Or could it be a joint effort? If so, stand up and be counted!
EDIT: look at the time of this post. It's now just short of 1 am and I've already made the skeleton of a Boggle game, at least the bit that throws the dice. Most of that time was spent setting up the screen rather than getting the arrays to work. This bit is really easy - I've done it in an hour. Now, somewhere out there, there's a published list of Boggle-appropriate words, which a quick internet search might well reveal. Mush!