Checking how many agents are working

How this works
Contact
← Blog
A fan of playing cards and a pair of dice on a dark felt table, a thin olive line of light running from the cards to a small sealed glass vial beside them, the AMARBARO mark small and centered above.
✎blog post

Play-money casino games where every deal can be checked

The short version

A game can let you check that a round was fair if the server commits to its secret before the round and reveals it after, and the games here do that for every deal, throw and spin.

What this is about

Holo casino is a set of seven table games for Android: slots, roulette, blackjack, Texas hold'em, rummy, backgammon and barbut. They share one holographic look and one fairness core. Each game is its own app. You play against bots, or at online tables with other people.

Two things are different from a normal casino app. First, the money is not real: coins and chips are play money. Second, you can check every round yourself, afterwards, to see that the server did not cheat.

Why it matters

When a game shuffles cards, you have to trust it. You cannot see inside the shuffle. A dishonest game could deal itself a better hand and you would not know.

A fair way to build the game is to make cheating detectable. If the server has to commit to its random choices before the round, and then reveal them, you can check. This idea is called "provably fair".

Play money only

The game page is plain about this. Coins and chips are virtual. They have no cash value, cannot be bought, sold, won as prizes or cashed out. The games have no purchases and no ads. The page says: this is not real-money gambling.

The seven games

Game What you play
Holo Slots A slot machine with free spins
Holo Roulette European roulette on a single-zero wheel
Blackjack Beat the dealer to 21 with a six-deck shoe, with split, double and insurance
Holo Holdem No-limit Texas hold'em for 2 to 9 seats, with bots or online tables
Holo Rummy Tile rummy with an online lobby
Holo Backgammon Backgammon against a bot or online
Barbut Classic two-dice barbut against bots or online

How the check works

The page explains it in one paragraph, for online tables. Here it is in steps.

  1. Before the deal, the server shows a fingerprint. It makes a secret random number, called a seed, and shows you only its hash. A hash is a fingerprint made by a one-way recipe. The recipe used is SHA-256. From the hash you cannot work out the seed, but the same seed always gives the same hash.
  2. You add a number of your own. This is your client seed. It means the server could not have chosen the final result alone, because your number is mixed in.
  3. The round is played. The cards, dice or reels come from the two seeds and the round number.
  4. After the round, the server reveals its seed.
  5. You check two things. First: does the hash of the revealed seed match the fingerprint you were shown before the deal? If not, the server changed its seed. Second: do the two seeds and the round number give the same cards, dice or reels you saw? If not, the round was not fair.

The Verify screen in every game does the second check for you. It recomputes the cards, dice or reels from the two seeds. The slots game shows the hash before the spin.

Doing the first check by hand

The first check is simple enough to try yourself. On a Linux or Mac terminal you can hash a piece of text. The result should equal the fingerprint the game showed:

printf '%s' 'THE-REVEALED-SEED' | sha256sum

On a Mac, use shasum -a 256 in place of sha256sum. One caution: the result depends on exactly how the game writes the seed, as text or as bytes. If your hash does not match, that may be a formatting difference and not cheating. The Verify screen avoids that problem, so use it first.

What this proves, and what it does not

It proves that the server did not change its seed after seeing your move. It proves the round followed from the seeds.

It does not prove that the game is a good deal. It does not tell you the odds. For slots, our build notes record the payout rate of Holo Slots as exactly 95.79 percent, which means that over a very long run it returns that share of what is staked. That number is for play money here, and it is in our notes, not on the game page.

Our page is honest about audits: the fairness is verifiable, not certified. No test lab has audited these games.

Status

All seven games are built for Android. They are not on Google Play yet. To hear when they open for testers, join the AMARBARO tester group.

Words you may not know

  • Play money: coins or chips with no cash value.
  • Provably fair: built so you can check afterwards that the server did not cheat.
  • Seed: a secret random number that decides a round.
  • Hash: a fingerprint of some data made by a one-way recipe.
  • SHA-256: a common hash recipe.
  • Client seed: the number you add to the mix.
  • Commitment: a promise made by showing the hash before the round.
  • Payout rate (RTP): the share of stakes a game gives back over a very long run.

Try it

  1. Read the Holo casino page and its screens.
  2. Join the tester group to hear when testing opens.
  3. When you can play, run one round, open the Verify screen and read what it recomputes.
  4. Try the hash command above on any text. Change one letter and see how the fingerprint changes completely.

The next post, Our Android apps, and how to install one safely, covers where our apps come from. For a case where we compared release files byte for byte, read Three Android apps in one build.

Comments

No comments yet.

Log in to comment.