Penguin Adventure Slot Machines

Page 2/3
1 | | 3

By deepshell

Resident (53)

deepshell's picture

25-01-2016, 15:30

Awesome engineering @Guillian!

By Daemos

Paragon (1713)

Daemos's picture

25-01-2016, 16:46

Quote:

So my timing story is utter bs?

Not entirely. Once you get one right it is a question of timing. ld a,r is a refresh counter and it is not so random as we like to believe it is. It just counts really fast. So if you are good and fast enough its not just luck. Only the first one is.

By ren

Paragon (1492)

ren's picture

25-01-2016, 17:00

Ha! But, let's say an 0.5 - 1s interval.. Could still be valid?

By Daemos

Paragon (1713)

Daemos's picture

25-01-2016, 17:06

The human brain is pretty capable of doing some damn precise timing so if you have practiced enough you may have increased your chances significantly to get 3 in a row.

By deepshell

Resident (53)

deepshell's picture

25-01-2016, 17:13

I still don't get it. The results array is looped through at a constant speed, right? So we have to wait between tapping for the amount of time it takes to loop through the array once in order to get three times the same symbol. But what's the looping time?

By Guillian

Prophet (3331)

Guillian's picture

25-01-2016, 17:17

Daemos is right about the R register. It is incremented once per M1 (or so, I'm not sure). Its lower 7 bits work somehow like a counter.

The problem here is that every iteration of the program does not execute the same number of instructions, so R register will not be incremented with a constant value (i.e.: the music player does not execute always the same instructions in the same order and with the same results)

So in each iteration R will have a different value, so the array will start at a different point.
Furthermore, each time you select an item in the slot machine, the loop that updates the 3 positions is decremented, so the R register again is updated different in each iteration.

Also the slot machine is updated 50/60 times per second. So, for a human, I think it is matter of luck.

By deepshell

Resident (53)

deepshell's picture

25-01-2016, 17:21

I've just contacted the guy from the long play video... I'll let you know if he replies.

By Daemos

Paragon (1713)

Daemos's picture

25-01-2016, 17:45

Quote:

Also the slot machine is updated 50/60 times per second. So, for a human, I think it is matter of luck.

we should be very carefull with that statement. There is a japanese guy who actually cuts bullets in half with the size of a peanut comming at him at about 110-130 m/s which is faster than the human eye/brain combo can actually proces the incomming images. He even draws the katana which is a proces subject to friction and other physics as well.

A well trained human can reach to pretty exsessive performance if it is about timing.

By Guillian

Prophet (3331)

Guillian's picture

25-01-2016, 17:56

I saw that video. But I fell that the bullet must follow always the same trajectory so he can "guess" where it will be.

Anyway, what I wanted to mean is that if to a random order you add 50/60 updates per second, it is impossible for a human to know the result.

By ren

Paragon (1492)

ren's picture

25-01-2016, 17:58

Guillian wrote:

Filling the array with a value will show a fixed result in the slot machine. I mean, if you fill the array with 00s, the slot machine will show "static" cherries. So it would be clear that he was cheating ^^!

I figured the result array perhaps being independent from what's displayed when the reels are spinning... Like the actual outcome was determined only when pressing space, like a random value picked from the array at that time..

So actually the reel is spinning the values from this array, and when space is pressed it stops right there? Smile

Page 2/3
1 | | 3