# Provably Fair Gambling

Goal-stop the casino being able to decide or know what the card or number will be before it is dealt
Usage-Uses cryptography and Bitcoin values does not use Bitcoin itself.Is just as easy for fiat currency operators to implement

That was what we discussed will be one type of provably fair gambling will give an example.Now if the more common type which is used in casino games which require random cards or random numbers to be drawn.The goal is to stop the casino being able to decide or know what the car door number will be before it is dealt and this method uses cryptography and it uses Bitcoin logic but it doesn’t use Bitcoin itself and it’s possible for fiat currency operators to also implement this type of provably fair gambling.

So to explain this properly I have to give you a couple of definitions.

Definitions
Hashes-A long string of characters derived from other data.This is a mathematical problem that is extremely difficult to solve but if it was solved it would give you the data it hashes.If a solution is presented it is easy to backward test it to see if the solution is correct or not.So hashes are hard to solve but easy to verify a solution for.
Seeds-Extra data (a string of characters) applied to the hash which modifies what it hashes.

This is a simplified definition that serves for the purposes of what we’re explaining today.A hash is a long string of characters derived from other data.This is a mathematical problem that is extremely difficult to solve.If it was solved it would give you the data it hashes.If a solution is presented it’s easy to backward test it to see if the solution is correct or not.So hashes are hard to solve but easy to verify a solution for somewhat like a Sudoku puzzle that’s very difficult to complete but once it’s completed you can easily check whether it’s correct or not and the other thing to define is a seed.See it is extra data each in this case is a string of characters that is applied to the hash which modifies the hash or modifies what it hashes and here’s our can work for provably fare card dealing.The first step is for the site to shuffle the deck as normal so you start with a random shuffle.

Probably Fair Card Dealing
Step 1-Site shuffles the deck as normal
Step 2-Site provides you with a hash of the shuffle
Step 3-You provide a random seed that the site cannot see or predict
Step 4-Your seed changes the shuffle to something neither you nor the site can have known

The site then provides you with a hash of the shuffle which we call the initial deck,you then provide a random seed client-side in your browser.Not server side so the operator cannot see or predict what this seed will be.It’s only happening on your end and you’ll see will change the initial shuffle to something that neither you or the site can have known then.The hand is doped you win or lose.Now it’s time to verify that the cards were dealt fairly so the first step is that the initial deck is laid out and the final deck is laid out.You can then check that the initial deck was what the hash that the site provided to you said it should be and they gave you that hatch before.The cards were dealt you can then check that the deck was changed in accordance with the seed that provided and if both of those things are the case then you have just played a provably fair hand.Now keep in mind fear in this sense means the game is not rigged or the operator who’s not being dishonest it doesn’t mean that you have even chance of winning or losing.It’s doesn’t change the odds of the game,and it’s not end to end trustless the site can still rip you off by not letting you withdraw by selling your log-in details to hackers and these things are actually more common than rigged games so it doesn’t solve all problems of trust in online gambling.

Verifying the Cards Were Dealt Fairly
Step 1-The initial deck is laid out
Step 2-You check that the deck started out as the hash the site provided indicated
Step 3-You check that the deck was then changed in accordance with the seed you provided

If these are both the case then you have just played a provably fair hand

Cautions
The odds don’t change-Fair in this sense does not mean true value odds,it means honesty and true randomness it does not mean you have an equal chance of winning or losing