Experimenting with Blockchain to create a slot machine.

Words
167
Reading
1 min
Listen
Play
2y

So I was doing some experiments with Hive signatures to obtain truly random values. So I created a slot machine(https://games.hivetasks.com) that works with an easy to understand formula:

  1. Bot detects an HBD value transacted to htgames@htgames with slotmachine in the memo.
  2. Take last byte from <transaction block>+1, divide by 65 and get remainder R.
  3. Take remainder R and get value at that byte position in the signature of following block(<transaction block>+2).
  4. Repeat steps 2 and 3 two more times, replacing the <transaction block>+1 with the first block following the last number.

Well, this is just an experiment I was doing lately. I also have a bot running to detect winning transactions and send 8K times the transacted bet to the winner(or htgames@htgames balance if not enough available HBD).

Well... this is just an experiment. feel free to play if you want.


If you have a spare vote...

Vote for me as your Hive Witness


If you want to support Brazilian creators...

Vote curator @perfilbrasil for Hive Witness

Delegations to perfilbrasil@perfilbrasil are rewarded here.
Experimenting with Blockchain to create a slot machine. | Ecency