Page 1 of 6
Simple time-waster game
Posted: Wed Jun 12, 2024 10:17 pm
by Mark Swift
A recent long plane journey and a later coach trip put me in the position of having time on my hands with nothing much to do.
Space was limited and it was impossible to use a laptop so I decided to see what I could do in QDOS with just my phone and a small foldable bluetooth keyboard. There were some strange looks on the plane, but it helped me pass the time.
This is the result. At 131 lines it's a simple SuperBASIC mental challenge game.
The challenge requires you to type the average of the two numbers above and below or to the left and the right of the green input box as quickly as you can. There are 77 averages to complete, at the end of which you are given a score to show how long it took on average for you to do each calculation. The setup is random, and some setups are easier than others.
The real challenge is to beat your previous score without getting brain ache.
I do realise it's not the most captivating of games. Hopefully it's worth the post and of interest to someone.
Re: Simple time-waster game
Posted: Wed Jun 12, 2024 11:01 pm
by Derek_Stewart
Hi Mark,
Interesting game, I like this type of game play.
I like the programming style.
Re: Simple time-waster game
Posted: Thu Jun 13, 2024 8:38 pm
by Mark Swift
Derek_Stewart wrote: Wed Jun 12, 2024 11:01 pm
Interesting game, I like this type of game play.
Thanks Derek.
I tried to think of a brain training type game that would be easy to program in SuperBASIC. Number averages came to mind.
While writing I added cheat code so that the game logic could be tested end to end quickly without having to solve multiple challenges.
That code is still in the game, left to be discovered.
Re: Simple time-waster game
Posted: Wed Jun 19, 2024 3:13 pm
by stevepoole
Hi Mark,
After downloading, I had to rename the file and resave it, so as to be able to run it...
It is unusable in 512x256 mode on QPC2, but ok in 800x600. (No ESCape option though).
But the game is neat and a good test for one's mental arithmetic, (Especially if it has gone rusty).
Great inspiration, and good training for newspaper puzzles... Steve.
________________________________________________________________
Re: Simple time-waster game
Posted: Wed Jun 19, 2024 4:31 pm
by NL_QL_Usr
Very nice!!!
I was embarrassing Slow....
But with the cheat
Genius ......

Re: Simple time-waster game
Posted: Thu Jun 20, 2024 1:33 pm
by stevepoole
Hi Folks,
Yes Mark, AVERAGES are used in needle-making factories, to sort pins piled in contorted heaps, simply by shaking them !
Here is a simulation, which finally emulates water-weeds floating in a brook, a possible screen-saver ?
Tested ok on QPC, under SMSQ/E & QDOS, but slower on the latter.... Just UNZIP, LRUN or ESCape. Steve.
- Pins.zip
- (736 Bytes) Downloaded 143 times
Re: Simple time-waster game
Posted: Fri Jun 21, 2024 9:08 pm
by Mark Swift
Hi Steve,
stevepoole wrote: Wed Jun 19, 2024 3:13 pm
After downloading, I had to rename the file and resave it, so as to be able to run it...
Would this be due me zipping it up as _bas instead of .bas, and possibly due to file name length?
If so, I'll keep that in mind next time.
stevepoole wrote: Thu Jun 20, 2024 1:33 pm
Here is a simulation, which finally emulates water-weeds floating in a brook...
It's interesting that the needles always end up almost horizontal averaging close to 180 degrees.
Re: Simple time-waster game
Posted: Sat Jun 22, 2024 6:38 am
by stevepoole
Hi Mark,
Yes, the problem was that you placed your program inside another file with the same name, then you zipped it.
So QPC2 could not handle the double name, wihout me first renaming the outer file....
ALSO, Pin directions : change line 190 to read rnd(1359) , 160 to f=1 to n*4 , 420 to PAUSE 250 .
That will swivel the angles (and end up with pins more parallel).
BUT, In the factory, the needles lie on a sloping tray, so end up all nicely aligned on one edge... Regards, Steve.
Re: Simple time-waster game
Posted: Sat Jun 22, 2024 6:57 am
by stevepoole
Hi again Mark,
To align all pins on one edge, as if the pins lie on a slope :
Line 190 reset the angle to RND(359).
Line 410 END FOR z: CLS: FOR z=1 TO n: t(z,i)=0: t(z,x)=t(z,x)*.7: drw z
Amazing, no ? So now you know the trade secret..... Steve.
Re: Simple time-waster game
Posted: Mon Jun 24, 2024 9:35 am
by stevepoole
Hi Folks,
It's still been raining so here is another screen-saver, to avoid having to scramble your brains on hard games !
Just UNZIP, LRUN and sit back & relax.... Tested ok on QPC, but too slow on SGC.
Big Bang ? Big Crunch ? ...... Regards, Steve.