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:
- Bot detects an HBD value transacted to
@htgames with slotmachine in the memo.
- Take last byte from
<transaction block>+1, divide by 65 and get remainderR. - Take remainder
Rand get value at that byte position in the signature of following block(<transaction block>+2). - Repeat steps 2 and 3 two more times, replacing the
<transaction block>+1with 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 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 are rewarded here.