GrimR
GrimR
Joined: Feb 27, 2011
  • Threads: 1
  • Posts: 7
February 27th, 2011 at 12:34:07 AM permalink
Hello,

I am from Sydney, Australia and have recently decided to pick up Delphi (Object Pascal) programming for windows again to take a shot at programming a PC version of an Aristocrat Pokie Machine by the name of "Where's... The Gold", a favorite of mine and many friends and family members here in Australia.

The images and sounds will be original even if not very good to begin with (graphics and sound are not my thing haha!).

So scouring good old Google for the past few days, I have found little information until I hit Wizard Of Odds and the Atkins Diet game, which is quite similar (WTG has 9 symbols and no sub, Atkens 11 symbols with a sub), WTG also has scatter symbol but feature is quite different (something that might be challenging later in development).

The major thing is, I have been following the PDF document available with this game to get an idea on the reel configuration (I have no idea how many symbols per reel WTG actually uses), where for the symbol reel table I substituted 2 of the Atkins Diet symbols that have the same payout for 2 different symbols for a double up of Jack and Queen symbols.

I am unsure of how well this will work in practice, and what the return will be, I do not know or understand the math of how to work these things out.

Could someone possibly explain?

The PDF in question is

The figures I mean are how the return was worked out based on the reel config etc.
Wizard
Administrator
Wizard
Joined: Oct 14, 2009
  • Threads: 1375
  • Posts: 22948
February 27th, 2011 at 8:01:41 AM permalink
The easiest way to get the return for a video slot (what you would call a "pokie") is to do five nested for loops and score every way the reels could stop. With the wild symbols a formulaic solution is too messy.
It's not whether you win or lose; it's whether or not you had a good bet.
GrimR
GrimR
Joined: Feb 27, 2011
  • Threads: 1
  • Posts: 7
February 27th, 2011 at 5:22:30 PM permalink
Hi, thank for the reply.

Im actually stuck with the math figuring out the combinations and
pay back percentages etc, I spent several hours researching permutations
but can't seem to find something to produce the same results that you
have in the pdf (using the table in the pdf not my modified one)

I did manage to get 1 percentage for 4 in a row of Atkins symbol just
before I gave it up for the night but the calculation involved 5 reels, which
seems strange as 4 in a row can only happen left to right, first 4 reels for a
practical figure anyway?
nmacgre
nmacgre
Joined: Aug 23, 2010
  • Threads: 14
  • Posts: 84
March 1st, 2011 at 5:28:16 AM permalink
I had just posted a question about this yesterday. Thanks for the info. Grim you have to consider that on the 5th reel there are not 32 options. For four Atkin symbols in a row the last symbol cannot be an Atkins (cause that would give you 5 atkins in a row, a diffrent pay) and it also cannot be a steak, cause that would be come 5 steaks in a row. This would pay more than 4 atkins, so you dont count it as a 4-atkins possibility. So an example is you could get A-A-A-A-Mayo or A-A-A-A-Butter or A-A-A-A-Cheese.

What the wiz is saying he did is use a program that loops through every possible combination and tabulates the frequencies. The first tieration would check the first spot on each reel:
1-1-1-1-1
then
1-1-1-1-2
1-1-1-1-3
1-1-1-1-4
....
32-32-32-32-32.
Wizard
Administrator
Wizard
Joined: Oct 14, 2009
  • Threads: 1375
  • Posts: 22948
March 1st, 2011 at 5:41:58 AM permalink
Again, the math gets very messy with the wild symbols. It is by far the easiest to do five nested loops and score all 32^5 ways the reels can stop, and then take the average. If you don't program, then you'll have to learn, or take my results on faith.
It's not whether you win or lose; it's whether or not you had a good bet.
GrimR
GrimR
Joined: Feb 27, 2011
  • Threads: 1
  • Posts: 7
March 1st, 2011 at 11:08:44 AM permalink
Fair enough, yeah I could program something for it.

I thought there might of been some simple statistical math to work
out return (e.g 97%) etc.

Luckily my main game will have no wild symbols, the feature however is
riddled with them! Which is going to add more fun to payout line checking.

Also playing the particular machine yesterday after work I noticed some
odd line combinations, e.g two in a row bottom, then one at the very top
on center reel which pay, but even if two of the same symbol line up the
top with the middle one they are ignored. Seems a strange way to consider
a valid line and then negate anything beyond it even if lined up perfectly.
MathExtremist
MathExtremist
Joined: Aug 31, 2010
  • Threads: 88
  • Posts: 6526
March 2nd, 2011 at 7:49:13 AM permalink
Quote: GrimR

Fair enough, yeah I could program something for it.

I thought there might of been some simple statistical math to work
out return (e.g 97%) etc.



There's nothing simple about it; the question of whether a wild actually counts in a pay has to do with the context of the rest of the symbols around it. You can do it in a spreadsheet, but it's a very error-prone calculation.
"In my own case, when it seemed to me after a long illness that death was close at hand, I found no little solace in playing constantly at dice." -- Girolamo Cardano, 1563
GrimR
GrimR
Joined: Feb 27, 2011
  • Threads: 1
  • Posts: 7
March 4th, 2011 at 12:52:19 AM permalink
Yeah I'm not too worried about wild's in regards to the other symbols, I don't use them in the main game, although the feature would be riddled with them (1-3 symbols can turn out to be wild symbols during the feature spins).

What about the return percentage, is there a reasonable way to do it, or does this require the combination and/or pay probability values to calculate?
DJTeddyBear
DJTeddyBear
Joined: Nov 2, 2009
  • Threads: 183
  • Posts: 10396
March 4th, 2011 at 5:06:13 AM permalink
I meant to say this days ago...


When I started work on my Poker For Roulette side bet, I was trying to use Excel to do my probability calculations. In my first version, I was trying to calculate things such as various hands with or without flush possibilities, etc. My head started to hurt, and I was never sure if I had it right.

When I added wilds to the mix, my head exploded. I threw up my hands and instead created a program to cycle thru all 79million combinations of 5 Roulette spins, to evaluate them individually.

This is identical to what is being suggested for this slot machine question.


Thanks to the Wizard and MathExtremist for making me feel better about my "failure" to get the calculations right.
Last edited by: DJTeddyBear on Mar 21, 2021
I invented a few casino games. Info: http://www.DaveMillerGaming.com/ 覧覧覧覧覧覧覧覧覧覧覧覧覧覧覧覧覧覧 Superstitions are silly, childish, irrational rituals, born out of fear of the unknown. But how much does it cost to knock on wood? 😁
DJTeddyBear
DJTeddyBear
Joined: Nov 2, 2009
  • Threads: 183
  • Posts: 10396
March 4th, 2011 at 5:14:22 AM permalink
Return percentage?

Because my Poker For Roulette idea uses a progressive jackpot, the only way I could accurately project the return / house edge, was to run several 500million spin simulations, then take those results and feed them into Excel, tweaking the paytable to get the bottom line I wanted.

Basically, my simulation produced two output files. One contains the total number of hits for each winning combination. Simply multiply by the paytable to find my result.

The other is a log of each partial and full progressive winner. It contains the spin number and the type of winner. The spin number is needed to calculate the meter increment before the progressive payment is made. If the progressive was a full jackpot, I reseed it. If it was a partial, but causes the jackpot bank to fall below the reseed value, I top it off. Thru an Excel worksheet that's some 50,000 lines long, I track each of these events, and add them to the non-progressive totals to come up with my progressive analysis.

You probably need to do something similar.
Last edited by: DJTeddyBear on Mar 21, 2021
I invented a few casino games. Info: http://www.DaveMillerGaming.com/ 覧覧覧覧覧覧覧覧覧覧覧覧覧覧覧覧覧覧 Superstitions are silly, childish, irrational rituals, born out of fear of the unknown. But how much does it cost to knock on wood? 😁

  • Jump to: