Bitcoin Forum
November 04, 2024, 07:06:43 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Coinroll.it Martingale script  (Read 7970 times)
madberry (OP)
Newbie
*
Offline Offline

Activity: 29
Merit: 0



View Profile
May 08, 2013, 03:43:27 AM
 #1

I got a question if it was possible to make a martingale python script for coinroll.it
I kind of like messing with python so I came up with something.  The requester gave me permission me to post it here.
So the whole community can enjoy it.

Here is a link to the github repo.

Feel free to fork make changes and submit a pull request.

The following people added a contribution to the script:
d34th

If you win some using this script you could always donate some won coin here: 1Q2QDC78uaGgkm4r3G5YzZSriPv7KMUuQU

Please note:
I am _not_ interested in your opinion on gambling.
Other then that flame away.
Vince Torres
Sr. Member
****
Offline Offline

Activity: 337
Merit: 250


View Profile
May 08, 2013, 06:19:30 AM
 #2

Don't do this unless you have an infinite amount of money, or are in it for the very short term.

Namecoin.com .bit domain registrar. Register a new .bit domain for just $1!
BTC: 1LpKzg24NHmrxLZbnVphcstV3s7uA8cSnT
LTC: LWHswCFRPouCXTNiT8B9HUVnGrae9eojVg
Zaih
Hero Member
*****
Offline Offline

Activity: 504
Merit: 500


View Profile
May 08, 2013, 11:15:38 AM
 #3

Botting gambling & sticking to repetitive patterns feels as if you're taking away the enjoyment Sad

After all, that's all you get from gambling in the long run Tongue
arij
Full Member
***
Offline Offline

Activity: 173
Merit: 102


View Profile
May 09, 2013, 09:43:14 PM
 #4

Nice, Works great Smiley
syphen
Member
**
Offline Offline

Activity: 102
Merit: 10


View Profile
May 11, 2013, 05:55:19 AM
 #5

Can you make one for Satoshi Circle ?
madberry (OP)
Newbie
*
Offline Offline

Activity: 29
Merit: 0



View Profile
May 12, 2013, 02:08:09 AM
 #6

Can you make one for Satoshi Circle ?

I could tho it would be a lot harder.  Coinroll.it has an actual API. 
Satoshi Circle doesn't have that, which means it would take longer to develop.
syphen
Member
**
Offline Offline

Activity: 102
Merit: 10


View Profile
May 12, 2013, 11:00:20 PM
 #7

Oh, its cool.  I tried to run your script with python 2.6.6 in IDLE and I get a invalid syntax error every time at   

print "Start : %s" % time.ctime()    at the quotation mark
 
madberry (OP)
Newbie
*
Offline Offline

Activity: 29
Merit: 0



View Profile
May 13, 2013, 07:22:53 PM
 #8

Yeah you might want to go ahead and remove that line for your version of Python, or update to Python 2.7.
dooglus
Legendary
*
Offline Offline

Activity: 2940
Merit: 1333



View Profile
May 20, 2013, 05:48:13 AM
 #9

I got a question if it was possible to make a martingale python script for coinroll.it

I took a look at the code.  It looks very much like it bets random amounts and doesn't seem to use the martingale strategy at all.  Is that true?

See wikipedia for a description of martingale betting.

Just-Dice                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   Play or Invest                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   1% House Edge
Mooshire
Sr. Member
****
Offline Offline

Activity: 322
Merit: 250



View Profile
May 20, 2013, 07:17:33 PM
 #10

Nice script.

madberry (OP)
Newbie
*
Offline Offline

Activity: 29
Merit: 0



View Profile
May 24, 2013, 07:34:02 PM
 #11

I got a question if it was possible to make a martingale python script for coinroll.it

I took a look at the code.  It looks very much like it bets random amounts and doesn't seem to use the martingale strategy at all.  Is that true?

See wikipedia for a description of martingale betting.

Very true, version 2.0 will have an actual martingale algo.  This version is more a simple betting script then an actual martingale system.(that was the assignment from the person who wanted it)

I just need some free time to finish up version 2.0 and start testing.
madberry (OP)
Newbie
*
Offline Offline

Activity: 29
Merit: 0



View Profile
May 24, 2013, 07:36:53 PM
 #12

Nice script.

Thanks...
dooglus
Legendary
*
Offline Offline

Activity: 2940
Merit: 1333



View Profile
May 25, 2013, 03:32:51 AM
 #13

It would be cool if there was a betting script where you could chose the betting logic (martingale, random, reverse martingale, whatever) and the site (coinroll, satoshidice, primedice, etc) at run time.

If each betting strategy and each site was separated out into separate functions then it would be relatively easy to add new sites, and new strategies, without having to reinvent the wheel each time.

The only thing that puts me off is that running a bot against sites with negative expectation is kind of a silly thing to do, and writing such a bot could make it look as if you were encouraging people to partake in such silly activities.

Just-Dice                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   Play or Invest                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   1% House Edge
Zaih
Hero Member
*****
Offline Offline

Activity: 504
Merit: 500


View Profile
May 25, 2013, 03:34:32 AM
 #14

It would be cool if there was a betting script where you could chose the betting logic (martingale, random, reverse martingale, whatever) and the site (coinroll, satoshidice, primedice, etc) at run time.

If each betting strategy and each site was separated out into separate functions then it would be relatively easy to add new sites, and new strategies, without having to reinvent the wheel each time.

The only thing that puts me off is that running a bot against sites with negative expectation is kind of a silly thing to do, and writing such a bot could make it look as if you were encouraging people to partake in such silly activities.

Yeh as I said running bots makes no sense.. Why would you bot something that gives you constant -EV. Gambling's for fun.. Botting is done to get rid of monotonous processes. If you find gambling boring, then don't do it haha.
dooglus
Legendary
*
Offline Offline

Activity: 2940
Merit: 1333



View Profile
May 25, 2013, 03:37:28 AM
 #15

Yeh as I said running bots makes no sense.. Why would you bot something that gives you constant -EV. Gambling's for fun.. Botting is done to get rid of monotonous processes. If you find gambling boring, then don't do it haha.

But what makes less sense than writing a general dice-botting program is to keep writing new ones each time a new dice site appears.  Smiley

Just-Dice                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   Play or Invest                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   1% House Edge
Zaih
Hero Member
*****
Offline Offline

Activity: 504
Merit: 500


View Profile
May 25, 2013, 03:41:10 AM
 #16

Yeh as I said running bots makes no sense.. Why would you bot something that gives you constant -EV. Gambling's for fun.. Botting is done to get rid of monotonous processes. If you find gambling boring, then don't do it haha.

But what makes less sense than writing a general dice-botting program is to keep writing new ones each time a new dice site appears.  Smiley

You should do that then, doubt it'd take you more than 30 - 60 minutes right?
dooglus
Legendary
*
Offline Offline

Activity: 2940
Merit: 1333



View Profile
May 25, 2013, 04:05:59 AM
 #17

You should do that then, doubt it'd take you more than 30 - 60 minutes right?

It always surprises me how long these things take to do.  Then there's the testing.  None of the games have a testnet mode, so I end up risking real money, which wouldn't be so bad if I wasn't martingale betting, but as I've discovered first hand martingale can very quickly get out of hand.

And you know what sucks more than wasting your time writing a script that automatically plays a game where you're guaranteed to lose in the long run?  Losing all your coins while testing it!  Smiley

Just-Dice                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   Play or Invest                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   1% House Edge
hasher87
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500



View Profile
May 25, 2013, 11:37:57 AM
 #18

Python is one of those programming languages i've never learned before so kinda blur what to do here  Roll Eyes

please feel free to show me the way  Tongue
cwil
Sr. Member
****
Offline Offline

Activity: 285
Merit: 262


View Profile
May 25, 2013, 04:57:01 PM
 #19

It would be cool if there was a betting script where you could chose the betting logic (martingale, random, reverse martingale, whatever) and the site (coinroll, satoshidice, primedice, etc) at run time.

If each betting strategy and each site was separated out into separate functions then it would be relatively easy to add new sites, and new strategies, without having to reinvent the wheel each time.

The only thing that puts me off is that running a bot against sites with negative expectation is kind of a silly thing to do, and writing such a bot could make it look as if you were encouraging people to partake in such silly activities.
I think the biggest problem is that there is no general protocol these sites use for their various functions.  Coinroll.it does it the best from what I've seen.  They deliver account creation, deposit, withdrawal, and betting functions with output in an easy to use json format.  Other sites may require people to parse the sites response for things like a deposit address.  Not hard to do for an individual site, but certainly annoying for multiple sites.

 I think a decent approach to this would be utilizing a language that supports interfaces like C#.  We could design a communication interface that handles actually sending information to the site, meaning things like withdraw and bet, and a logic interface that determines how much to bet and when to withdraw.   Implementation would be an exercise for the user or general community.

 If there's interest I could write that up fairly quickly with a coinroll.it example.
dermo
Sr. Member
****
Offline Offline

Activity: 336
Merit: 250



View Profile
May 27, 2013, 09:56:20 AM
 #20

I want definitely try your script but how to run a python script ? Cheesy
I'm noob with dev etc...
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!