Simple time-waster game
- Mark Swift
- Bent Pin Expansion Port
- Posts: 86
- Joined: Fri Jul 18, 2014 9:13 am
- Location: Blackpool, Lancs, UK
- Contact:
Simple time-waster game
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.
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.
-
- Font of All Knowledge
- Posts: 4756
- Joined: Mon Dec 20, 2010 11:40 am
- Location: Sunny Runcorn, Cheshire, UK
Re: Simple time-waster game
Hi Mark,
Interesting game, I like this type of game play.
I like the programming style.
Interesting game, I like this type of game play.
I like the programming style.
Regards,
Derek
Derek
- Mark Swift
- Bent Pin Expansion Port
- Posts: 86
- Joined: Fri Jul 18, 2014 9:13 am
- Location: Blackpool, Lancs, UK
- Contact:
Re: Simple time-waster game
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.
-
- Aurora
- Posts: 890
- Joined: Mon Nov 24, 2014 2:03 pm
Re: Simple time-waster game
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.
________________________________________________________________
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
Very nice!!!
I was embarrassing Slow....
But with the cheat
Genius ......
I was embarrassing Slow....
But with the cheat
Genius ......

-
- Aurora
- Posts: 890
- Joined: Mon Nov 24, 2014 2:03 pm
Re: Simple time-waster game
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.
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.
- Mark Swift
- Bent Pin Expansion Port
- Posts: 86
- Joined: Fri Jul 18, 2014 9:13 am
- Location: Blackpool, Lancs, UK
- Contact:
Re: Simple time-waster game
Hi Steve,
If so, I'll keep that in mind next time.
Would this be due me zipping it up as _bas instead of .bas, and possibly due to file name length?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...
If so, I'll keep that in mind next time.
It's interesting that the needles always end up almost horizontal averaging close to 180 degrees.stevepoole wrote: Thu Jun 20, 2024 1:33 pm Here is a simulation, which finally emulates water-weeds floating in a brook...
-
- Aurora
- Posts: 890
- Joined: Mon Nov 24, 2014 2:03 pm
Re: Simple time-waster game
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.
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.
-
- Aurora
- Posts: 890
- Joined: Mon Nov 24, 2014 2:03 pm
Re: Simple time-waster game
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.
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.
-
- Aurora
- Posts: 890
- Joined: Mon Nov 24, 2014 2:03 pm
Re: Simple time-waster game
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.
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.