import random import sys import pandas as pd import math global n,spin,stake, total_stake, win, all_dict,cost,alls,profit,nn nn=0 total_stake=[] alls=[] nos_list=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36] #bet_list=[0.25,0.25,0.25,0.25,0.33,0.33,0.33,0.5,0.5,1,2] bet_list=[0,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] all_dict=dict(zip(nos_list,bet_list)) #cost=sum(all_dict.values()) #print(cost) def winner(spin): print("Win",36*all_dict[spin]) profit=36*all_dict[spin]-sum(alls) print("Profit",profit) if profit>0: sys.exit() else: gg=sum(all_dict.values()) all_dict[spin]=all_dict[spin]+nn print(all_dict,gg) alls.clear() alls.append(-profit) for xx in range(200): spin=random.randint(0, 36) print(spin) gg=sum(all_dict.values()) alls.append(gg) print("Cost",sum(alls)) #print(spin) if spin>0 and spin<13: nn=nn+0.1 winner(spin) print("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++")