There are three casino games on this site: Safari Time, Wyrmhoard Keno and Elo's Hoard. They are far from done. They work, though, and that is enough to put them up.
All three are play money. Nothing here takes or pays a cent.
Why casino games
I watch a lot of gambling machines. Montana has them everywhere, and after enough hours you stop seeing the lights and start asking questions. Why did that keno card pay the bet back for catching nothing? Why does the bonus always seem one symbol away?
Every one of those has an answer, and the answer is a number. A casino game is the only kind of game I know where the design has to add up to a figure you can check. I wanted to see if I could make one that did.
The two rules that shape everything
I built all three to Montana's machine limits: a $2.00 top bet and an $800 top payout on one play.
Put those together and a $2 player can never win more than 400 times their bet. A nickel player can win 16,000 times theirs. So the same game needs a different pay table at every bet size, and at the high bets the top prizes all press up against the same ceiling. Most of the work in these games is deciding where the money goes once it can't go to the jackpot.
The basic maths
You don't need any of this to play. It's here because it's what I had to learn first.
Return. Every casino game has one number behind it, the return. A 92% game gives back $92 of every $100 bet, but only over millions of plays. It says nothing about tonight. In one sitting you can double up or lose the lot, and the game is still a 92% game.
How you get that number. Take each way to win. Multiply how often it happens by what it pays. Add them all up. That's the whole method, for keno and for slots.
Keno. Twenty of eighty numbers get drawn, so any one number has a 1 in 4 chance. Imagine a game where you pick one number and it pays 3 for 1. You win a quarter of the time and get 3 back, so over time you get 75 cents of every dollar. A 75% game. Pay 4 instead and it's 100%, and the house makes nothing.
Pick more numbers and it gets steep fast. Mark ten and you'll catch two or three on an average game. Catching all ten is about 1 in 8.9 million. Nobody has to guess at these. There are about 3.5 quintillion ways for twenty numbers to fall, and you can count exactly how many of them hit your card.
Slots. A reel is a long strip of symbols, and the game picks a stopping point on each one. Say a lion sits on 5 of a reel's 100 stops. That's 1 in 20 on that reel. For three reels in a row it's 20 x 20 x 20, or 1 in 8,000. Put the lion on 10 stops and it's 1 in 1,000. Same pay, eight times as often. That's the dial a slot designer turns.
A real slot is messier than that, because you see three rows, there are ten lines, and wilds stand in for other symbols. The idea underneath is the same: count the ways, multiply by the pay, add it up.
Same return, different game. Two games can both pay back 90% and feel nothing alike. One hands out small wins all night. The other is quiet for an hour and then pays big. Which of those you build is the designer's choice, and it's most of what makes a game feel the way it does.
Safari Time: the slot
Five reels, three rows, ten lines. A wild fills its whole reel, and in the free games a wild stays put until the feature ends.
I started from a real machine's pay table and halved it, because Montana's top line bet is half of what that machine was published at. Then I left the pay table alone. On a slot you don't tune the return by changing what a lion pays. You tune it by changing how often the lion shows up. Each reel has 100 stops, which is ten billion combinations, and the return comes out of how the symbols are spread across them.
It lands at 92.13%. About 71 points come from line wins, 6.5 from the scatter, and 14 from the free games. The first two I could work out exactly. The free games I couldn't, because a wild that sticks changes every spin after it, so those are played out a million times and averaged.
The free games also run on their own reels with fewer wilds. With the normal reels, three locked wild reels would be routine and the feature would pay far too much.
Wyrmhoard Keno: the big one
Eighty numbers, twenty drawn, pick four to ten. Montana-style keno, done with a dragon.
Keno maths is exact. No reels, no simulation, only counting how many ways twenty numbers can fall. The hard part is the number of tables. Every bet size and every count of picks needs its own, each one has to stay under $800, and each has to climb, so that catching more never pays less.
The best thing in it is the eggs. They sit on numbers you didn't pick. Every egg that gets drawn is a ball that missed your card, so you end up cheering for your own misses. Four eggs open a run of free games.
You don't have to take my word for any of it. There's a verify page that plays as many rounds as you like in your browser and shows the return it got next to the return the pay table claims.
Elo's Hoard: the cabinet
Also keno, but this one is about a feel. I wanted the look of an old Montana keno cabinet: the pay table down the left, the board split into two blocks of forty, every button in one strip along the bottom. The art, the theme and the maths are mine.
Three coins are hidden in the draw. The first one you collect pays nothing. It lights up, shows a big multiplier, and that's all it does. The second one multiplies your win. The third opens the Hoard, which comes around about once in 685 games with ten numbers marked.
My first version tied the coins to your own picks. With three numbers marked, any win meant you already had two coins, so the multiplier fired every single time and the game paid back more than double what it should. Moving the coins fixed it.
The other bug I liked: catching nine out of ten paid the same as catching all ten, because both had hit the $800 ceiling. A jackpot has to stand clear of the prize under it, so now only the top prize is allowed to reach $800.
How they differ
- Safari Time is a slot. The pay table is fixed and the reels are tuned. Part of its return can only be found by simulation.
- Wyrmhoard Keno is keno built wide: many bet sizes, many tables, a free games bonus, and a page that checks the maths in front of you.
- Elo's Hoard is keno built narrow: one cabinet, one coin mechanic, every figure worked out exactly.
What isn't right yet
The cash-outs don't look the same from game to game. I know. Believe it or not, the maths is the hard part, and it's where the time went. A cash-out screen is an afternoon. A bonus that pays exactly what it should, at every bet, without ever going over $800, took weeks.
So: mismatched in places, and a long way from finished. But the numbers hold, and you can play all three right now.