Author Topic: Mostly on blockchain roulette  (Read 1170 times)

0 Members and 1 Guest are viewing this topic.

Offline Empirical1.2

  • Hero Member
  • *****
  • Posts: 1366
    • View Profile
Cool, sounds good.

You might also want to post it on the bitcointalk gambling sub-forum at some stage and see if you find a few people willing to play or give additional feedback there.
If you want to take the island burn the boats

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
Thanks for the feedback Empirical.  I think the easiest way to reduce house edge is to increase the payout.  There is now a 5% payout bonus which moves the house edge down to about 0.53%

In standard American roulette there are 38 slots on the wheel.  On average if you bet on a single number continually you should win about every 38 spins.  Single numbers pay out 35 to 1.  Assuming a bet of $100 and starting with a balance of $3800 after 38 spins you should have $3600.  losses = 37 * $100 wins = $3500 + $100.(The single win, plus the bet placed on that win)  This is perhaps easier to think of as paying $100 to spin 38 times and winning $3600 on the one spin you win.

If you bet on red 38 times you should win 18 and lose 20.  Once again betting $100 you would end up with $3600 and a $200 loss.  losses = 20 * $100 wins = 18 * $100  + 18 * $100.  (winnings plus original bets 18 times)  This is perhaps easier to think of as paying $100 to spin 38 times and winning $200 on each of the 18 spins you win.

Both of these are an expected loss of $200, which is 5.263% of $3800

By increasing this total payout by 5% the house edge is moved down to around .53%

So now for a $100 bet on a single number 38 times.  Starting with $3800, you should end up with $3780.  Only losing $20.  Losses = 37 * $100 wins = ($3500 + $100) * 1.05.  This is once again easier to think of as spending $100 38 times and winning $3780 on the single winning spin.

For 38 bets on red its the same.  losses = 20 * $100 wins = (18 * $100 + 18 * $100)* 1.05.  And once again easier to think of as paying $100 38 times and winning $210 on the 18 winning spins for a total of $3780.

https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline Empirical1.2

  • Hero Member
  • *****
  • Posts: 1366
    • View Profile
Looks interesting. Even though you're mimicking roulette, I think you'll find that because it's a fast game of chance not too dissimilar to Dice, that you would have to get the house edge down to 1% if you wanted people to play much with real money. 
If you want to take the island burn the boats

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
The bot is working just fine, but some of the transactions were taking a little while to be included in a block.  Remember the bet is placed when your transaction is included in a block, not when you broadcast it.

Hello everyone,

I have been working on a project as a fun way to learn about programming.  I have moved it over to the BTS blockchain in the hopes of getting more attention.  It is based upon American roulette so the house edge should be about 5.3%.  maximum bet is currently 100 BTS.  There is no minimum bet.  You play by sending a transaction to the BTS account roulette-game and typing your bet in the memo.  If you send over the 100BTS max then it will be sent back to you after deducting 1BTS as a fee.  If you send an invalid bet your bet will be sent back to you after deducting a 1 BTS fee.  If you send any asset other than BTS it will not be automatically returned and you will have to contact me if you want it back.  If my bot eats your BTS, I will refund you fully. 

The betting rounds are broken up into ten block rounds.  On every block that ends in a zero the revealed secret of the delegate is used to generated a number between 1 and 7.  After that number of blocks the new revealed secret is used to generated a number between 0 and 37.  This is the spin.  each number corresponds to the number on a roulette wheel except for 37 which corresponds with 00.  Your bet is then matched to the spin result and if you win you are paid according to the odds associated with your bet.  If you do not win you are sent a transaction explaining this.  You can bet as many times as you want per round, but you are limited to one bet per transaction.

Currently available bets are:
    0, 00, or 1-36 pays out 35 to 1
    first column = (1, 4, 7, 10, 13, 16, 19, 22, 25, 28, 31, 34) pays out 2 to 1
    second column = (2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35) pays out 2 to 1
    third column = (3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36) pays out 2 to 1
    first dozen = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) pays out 2 to 1
    second dozen = (13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24) pays out 2 to 1
    third dozen = (25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36) pays out 2 to 1
    odd = (1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35) pays out 1 to 1
    even = (2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36) pays out 1 to 1
    red = (1, 3, 5, 7, 9, 12, 14, 16, 18, 19, 21, 23, 25, 27, 30, 32, 34, 36) pays out 1 to 1
    black = (2, 4, 6, 8, 10, 11, 13, 15, 17, 20, 22, 24, 26, 28, 29, 31, 33, 35) pays out 1 to 1
    first half = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18) pays out 1 to 1
    second half = (19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36) pays out 1 to 1
    row = (0, 00) pays out 17 to 1
    street 1 = (1, 2, 3) pays out 11 to 1
    street 2 = (4, 5, 6) pays out 11 to 1
    street 3 = (7, 8, 9) pays out 11 to 1
    street 4 = (10, 11, 12) pays out 11 to 1
    street 5 = (13, 14, 15) pays out 11 to 1
    street 6 = (16, 17, 18) pays out 11 to 1
    street 7 = (19, 20, 21) pays out 11 to 1
    street 8 = (22, 23, 24) pays out 11 to 1
    street 9 = (25, 26, 27) pays out 11 to 1
    street 10 = (28, 29, 30) pays out 11 to 1
    street 11 = (31, 32, 33) pays out 11 to 1
    street 12 = (34, 35, 36) pays out 11 to 1
    top line = (0, 37, 1, 2, 3) pays out 6 to 1
    six line 1 = (1, 2, 3, 4, 5, 6) pays out 5 to 1
    six line 2 = (4, 5, 6, 7, 8, 9) pays out 5 to 1
    six line 3 = (7, 8, 9, 10, 11, 12) pays out 5 to 1
    six line 4 = (10, 11, 12, 13, 14, 15) pays out 5 to 1
    six line 5 = (13, 14, 15, 16, 17, 18) pays out 5 to 1
    six line 6 = (16, 17, 18, 19, 20, 21) pays out 5 to 1
    six line 7 = (19, 20, 21, 22, 23, 24) pays out 5 to 1
    six line 8 = (22, 23, 24, 25, 26, 27) pays out 5 to 1
    six line 9 = (25, 26, 27, 28, 29, 30) pays out 5 to 1
    six line 10 = (28, 29, 30, 31, 32, 33) pays out 5 to 1
    six line 11 = (31, 32, 33, 34, 35, 36) pays out 5 to 1
   
Any input would be greatly appreciated

« Last Edit: July 09, 2015, 11:57:59 pm by puppies »
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads