It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
#!/usr/bin/env python
import random
edge = 2.0 # what's the house edge?
lessthan = (1 - edge/100) / 2 # what does that represent as a 'lessthan' target (between 0 and 1)
def play(stake):
if random.random() < lessthan: return stake
return -stake
repeats = 10
plays = 1000000
min_bet = 1
max_bet = 1000
# flat betting
stake = min_bet
for repeat in range(repeats):
balance = 0
total_bet = 0
for n in range(plays):
total_bet += stake
balance += play(stake)
print "after %d flat plays, bet %7d, profit %7d. won %7.4f per unit bet" % (plays, total_bet, balance, float(balance)/total_bet)
# martingale
for repeat in range(repeats):
balance = 0
n = 0
stake = min_bet
total_bet = 0
while n < plays:
total_bet += stake
profit = play(stake)
balance += profit
if profit > 0:
stake = min_bet
else:
stake *= 2
if stake > max_bet:
stake = min_bet
n += 1
print "after %d martingale plays, bet %7d, profit %7d. won %7.4f per unit bet" % (plays, total_bet, balance, float(balance)/total_bet)
$ python ~/Source/Python/martingale-house-edge.py
after 1000000 flat plays, bet 1000000, profit -20838. won -0.0208 per unit bet
after 1000000 flat plays, bet 1000000, profit -21044. won -0.0210 per unit bet
after 1000000 flat plays, bet 1000000, profit -19336. won -0.0193 per unit bet
after 1000000 flat plays, bet 1000000, profit -19268. won -0.0193 per unit bet
after 1000000 flat plays, bet 1000000, profit -20994. won -0.0210 per unit bet
after 1000000 flat plays, bet 1000000, profit -19716. won -0.0197 per unit bet
after 1000000 flat plays, bet 1000000, profit -20520. won -0.0205 per unit bet
after 1000000 flat plays, bet 1000000, profit -19954. won -0.0200 per unit bet
after 1000000 flat plays, bet 1000000, profit -20046. won -0.0200 per unit bet
after 1000000 flat plays, bet 1000000, profit -18202. won -0.0182 per unit bet
after 1000000 martingale plays, bet 5330214, profit -77550. won -0.0145 per unit bet
after 1000000 martingale plays, bet 5338031, profit -96823. won -0.0181 per unit bet
after 1000000 martingale plays, bet 5347483, profit -123551. won -0.0231 per unit bet
after 1000000 martingale plays, bet 5370050, profit -86658. won -0.0161 per unit bet
after 1000000 martingale plays, bet 5387133, profit -114297. won -0.0212 per unit bet
after 1000000 martingale plays, bet 5400165, profit -96079. won -0.0178 per unit bet
after 1000000 martingale plays, bet 5412402, profit -131294. won -0.0243 per unit bet
after 1000000 martingale plays, bet 5394777, profit -136873. won -0.0254 per unit bet
after 1000000 martingale plays, bet 5387980, profit -110224. won -0.0205 per unit bet
after 1000000 martingale plays, bet 5335811, profit -100759. won -0.0189 per unit bet
#!/usr/bin/env python
import random
edge = 2.0 # what's the house edge?
lessthan = (1 - edge/100) / 2 # what does that represent as a 'lessthan' target (between 0 and 1)
def play(stake):
if random.random() < lessthan: return stake
return -stake
repeats = 10
plays = 1000000
min_bet = 1
max_bet = 1000
# flat betting
stake = min_bet
for repeat in range(repeats):
balance = 0
total_bet = 0
for n in range(plays):
total_bet += stake
balance += play(stake)
print "after %d flat plays, bet %7d, profit %7d. won %7.4f per unit bet" % (plays, total_bet, balance, float(balance)/total_bet)
# martingale
for repeat in range(repeats):
balance = 0
n = 0
stake = min_bet
total_bet = 0
while n < plays:
total_bet += stake
profit = play(stake)
balance += profit
if profit > 0:
stake = min_bet
else:
stake *= 2
if stake > max_bet:
stake = min_bet
n += 1
print "after %d martingale plays, bet %7d, profit %7d. won %7.4f per unit bet" % (plays, total_bet, balance, float(balance)/total_bet)
$ python ~/Source/Python/martingale-house-edge.py
after 1000000 flat plays, bet 1000000, profit -20838. won -0.0208 per unit bet
after 1000000 flat plays, bet 1000000, profit -21044. won -0.0210 per unit bet
after 1000000 flat plays, bet 1000000, profit -19336. won -0.0193 per unit bet
after 1000000 flat plays, bet 1000000, profit -19268. won -0.0193 per unit bet
after 1000000 flat plays, bet 1000000, profit -20994. won -0.0210 per unit bet
after 1000000 flat plays, bet 1000000, profit -19716. won -0.0197 per unit bet
after 1000000 flat plays, bet 1000000, profit -20520. won -0.0205 per unit bet
after 1000000 flat plays, bet 1000000, profit -19954. won -0.0200 per unit bet
after 1000000 flat plays, bet 1000000, profit -20046. won -0.0200 per unit bet
after 1000000 flat plays, bet 1000000, profit -18202. won -0.0182 per unit bet
after 1000000 martingale plays, bet 5330214, profit -77550. won -0.0145 per unit bet
after 1000000 martingale plays, bet 5338031, profit -96823. won -0.0181 per unit bet
after 1000000 martingale plays, bet 5347483, profit -123551. won -0.0231 per unit bet
after 1000000 martingale plays, bet 5370050, profit -86658. won -0.0161 per unit bet
after 1000000 martingale plays, bet 5387133, profit -114297. won -0.0212 per unit bet
after 1000000 martingale plays, bet 5400165, profit -96079. won -0.0178 per unit bet
after 1000000 martingale plays, bet 5412402, profit -131294. won -0.0243 per unit bet
after 1000000 martingale plays, bet 5394777, profit -136873. won -0.0254 per unit bet
after 1000000 martingale plays, bet 5387980, profit -110224. won -0.0205 per unit bet
after 1000000 martingale plays, bet 5335811, profit -100759. won -0.0189 per unit bet