1K hires: calculation game

Any discussions related to the creation of new hardware or software for the ZX80 or ZX81
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

1K hires: calculation game

Post by dr beep »

I want to use the routine from Fruit Machine simulator for this game with numbers.

http://www.youtube.com/watch?v=9mq8ILulfBU&t=2m20s

The computer should also calculate a solution however this would need 710x1024 permutations and would need at least 32 minutes per game. So I am working on a reduced calculation with possibilities of finding a solution in just seconds.

A possible idea would work in 6x6x6x6x6X3=23328 calculations.
Less is even possible but less change of finding a solution.

The less calculations the more change for you to beat the computer.
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: 1K hires: calculation game

Post by dr beep »

Wow,

Just found a method that might work within the time you have to find your solution.

So game will make a random number, set up random numbers to make the calculation,
you get app. 20 sec. to find a solution. You enter yours and computer gives its closest calculation.

In my example the computer calculates up to result -1 and not even all numbers are used.
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: 1K hires: calculation game

Post by dr beep »

I have a calculation method that can find results, but will not do all calculations.

So the computer might miss a calculation which you find.

Downfall.. it uses app. 20 sec (good) on a ZX Spectrum (not good).

So off to speeding up the routine.
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: 1K hires: calculation game

Post by dr beep »

2 seconds cut of with a faster routine to do correct operand.
Whole different routine fom average 33 tstates to 22 tstates to reach routine for
Add
Sub
Mult
Div
Skip nr1
Skip nr2
User avatar
gammaray
Posts: 590
Joined: Sun Apr 17, 2016 2:44 am
Location: Texas

Re: 1K hires: calculation game

Post by gammaray »

Saw the youtube video on the "game", BUT I do not understand the "decipher" game rules...I don't speak Deutsche so dialogue was no help.

Any feedback?
5-TS1000,UK ZX81<-Sheelagh, US ZX81, 2-TS1500/KDLX , 3-TS2040 printer, 2-TS2020 cassette decks, ZXPAND+AY, ZeddyNET, ZXBlast, UDG, ZX8CCB, AERCO, BUILDS/REPAIRS ZX Spectrum, ZX80 Minstrel, ZXMAX48 v1 v2, 2-TS-2068, ROM, 16kRAM
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: 1K hires: calculation game

Post by dr beep »

gammaray wrote: Tue Apr 11, 2017 6:29 pm Saw the youtube video on the "game", BUT I do not understand the "decipher" game rules...I don't speak Deutsche so dialogue was no help.

Any feedback?
6 numbers are randomly selected (in the game this is called by the contesters and the assistant picks a plate from the called row). The numbers are displayed and the goalnumber is set by rolling the rolls.

You must reach the number by add, subtract, multiply or divide the given numbers as close as possible. You may use them only once or not at all.
So example:
Goal 439
Numbers 8 9 1 5 10 8

You could answer: 10*9*5=450 450-8-1=441 ( 1x 8 not used)
where your opponent would say:
10+1=11 11*5=55 55*8=440 9-8=1 440-1=439 (all numbers used and goal reached)

Second player would win.

You will a player and computer second. Since computer will not calculate all possibilities you can beat the computer.
Computer will always display its closest call.
Moggy
Posts: 3266
Joined: Wed Jun 18, 2008 2:00 pm

Re: 1K hires: calculation game

Post by Moggy »

gammaray wrote: Tue Apr 11, 2017 6:29 pm Saw the youtube video on the "game", BUT I do not understand the "decipher" game rules...I don't speak Deutsche so dialogue was no help.

Any feedback?
UK version of the show.

https://www.youtube.com/watch?v=pfa3MHLLSWI
User avatar
gammaray
Posts: 590
Joined: Sun Apr 17, 2016 2:44 am
Location: Texas

Re: 1K hires: calculation game

Post by gammaray »

Make sure to give the human player 30 min and hobble the computer at 30, maybe ? 3 sec. I aint no George Ford!
5-TS1000,UK ZX81<-Sheelagh, US ZX81, 2-TS1500/KDLX , 3-TS2040 printer, 2-TS2020 cassette decks, ZXPAND+AY, ZeddyNET, ZXBlast, UDG, ZX8CCB, AERCO, BUILDS/REPAIRS ZX Spectrum, ZX80 Minstrel, ZXMAX48 v1 v2, 2-TS-2068, ROM, 16kRAM
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: 1K hires: calculation game

Post by dr beep »

gammaray wrote: Wed Apr 12, 2017 11:33 pm Make sure to give the human player 30 min and hobble the computer at 30, maybe ? 3 sec. I aint no George Ford!
Well, I thought you had 20 sec, but rules of Countdown state 30 sec.
so I have some room for the calculation by the computer.

My routine on the ZX Spectrum is reduced in time from 19,76 to 14,32 sec.

And for the ZX81 I plan on another timing trick.
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: 1K hires: calculation game

Post by dr beep »

14,02 by skipping more errordivisions.

Time to code the routine for the ZX81, including hires number display.
Post Reply