Bitcoin Forum

Economy => Gambling => Topic started by: madberry on May 08, 2013, 03:43:27 AM



Title: Coinroll.it Martingale script
Post by: madberry on May 08, 2013, 03:43:27 AM
I got a question if it was possible to make a martingale python script for coinroll.it (http://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. (https://github.com/madberry/coinroll_it)

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.


Title: Re: Coinroll.it Martingale script
Post by: Vince Torres on May 08, 2013, 06:19:30 AM
Don't do this unless you have an infinite amount of money, or are in it for the very short term.


Title: Re: Coinroll.it Martingale script
Post by: Zaih on May 08, 2013, 11:15:38 AM
Botting gambling & sticking to repetitive patterns feels as if you're taking away the enjoyment :(

After all, that's all you get from gambling in the long run :P


Title: Re: Coinroll.it Martingale script
Post by: arij on May 09, 2013, 09:43:14 PM
Nice, Works great :)


Title: Re: Coinroll.it Martingale script
Post by: syphen on May 11, 2013, 05:55:19 AM
Can you make one for Satoshi Circle ?


Title: Re: Coinroll.it Martingale script
Post by: madberry on May 12, 2013, 02:08:09 AM
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.


Title: Re: Coinroll.it Martingale script
Post by: syphen on May 12, 2013, 11:00:20 PM
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
 


Title: Re: Coinroll.it Martingale script
Post by: madberry on May 13, 2013, 07:22:53 PM
Yeah you might want to go ahead and remove that line for your version of Python, or update to Python 2.7.


Title: Re: Coinroll.it Martingale script
Post by: dooglus on May 20, 2013, 05:48:13 AM
I got a question if it was possible to make a martingale python script for coinroll.it (http://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 (http://en.wikipedia.org/wiki/Martingale_(betting_system)) for a description of martingale betting.


Title: Re: Coinroll.it Martingale script
Post by: Mooshire on May 20, 2013, 07:17:33 PM
Nice script.


Title: Re: Coinroll.it Martingale script
Post by: madberry on May 24, 2013, 07:34:02 PM
I got a question if it was possible to make a martingale python script for coinroll.it (http://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 (http://en.wikipedia.org/wiki/Martingale_(betting_system)) 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.


Title: Re: Coinroll.it Martingale script
Post by: madberry on May 24, 2013, 07:36:53 PM
Nice script.

Thanks...


Title: Re: Coinroll.it Martingale script
Post by: dooglus on May 25, 2013, 03:32:51 AM
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.


Title: Re: Coinroll.it Martingale script
Post by: Zaih on May 25, 2013, 03:34:32 AM
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.


Title: Re: Coinroll.it Martingale script
Post by: dooglus on May 25, 2013, 03:37:28 AM
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.  :)


Title: Re: Coinroll.it Martingale script
Post by: Zaih on May 25, 2013, 03:41:10 AM
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.  :)

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


Title: Re: Coinroll.it Martingale script
Post by: dooglus on May 25, 2013, 04:05:59 AM
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!  :)


Title: Re: Coinroll.it Martingale script
Post by: hasher87 on May 25, 2013, 11:37:57 AM
Python is one of those programming languages i've never learned before so kinda blur what to do here  ::)

please feel free to show me the way  :P


Title: Re: Coinroll.it Martingale script
Post by: cwil on May 25, 2013, 04:57:01 PM
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.


Title: Re: Coinroll.it Martingale script
Post by: dermo on May 27, 2013, 09:56:20 AM
I want definitely try your script but how to run a python script ? :D
I'm noob with dev etc...


Title: Re: Coinroll.it Martingale script
Post by: dermo on May 29, 2013, 05:03:32 AM
I want definitely try your script but how to run a python script ? :D
I'm noob with dev etc...

nobody can help me ?


Title: Re: Coinroll.it Martingale script
Post by: hasher87 on May 29, 2013, 05:42:26 AM
user 0001sonkit posted the martingale javascript from the coinroll thread tho

Quote
javascript:if($("#bets .item:first-child .lucky").hasClass('win')){$('#betamount').val('0.00001');roll()}else{setDouble();roll()}


And the modification of it by me, if you wished you want to set the max bet amount before reverting back to 0.0001
Quote
javascript:var betmount = $("#betamount").val(); if(betmount == '0.00032') { $('#betamount').val('0.00001') } else { if($("#bets .item:first-child .lucky").hasClass('win')) { $('#betamount').val('0.00001');roll()} else { setDouble();roll() } }

Use it at chrome as a bookmarked url, and clicky clicky clicky the button  ;D


Title: Re: Coinroll.it Martingale script
Post by: moreia on September 21, 2013, 08:12:05 PM
I got a question if it was possible to make a martingale python script for coinroll.it (http://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. (https://github.com/madberry/coinroll_it)

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.


Hello

How may I run the script "run.py"? What I need to do to run it?