Ejemplo n.º 1
0
 def __init__(self):
     #print "game - init"
     self.autoIt = autoIt()
     self.ray_mouse = ray_mouse(self.autoIt)
     self.file_for_results = "test.txt"
     self.file_with_colors = "color_tests_result.txt"
     self.iterNumbers = 10000
     self.sleepTime = 7000
     self.look_for_strategy = True
     self.counter_1 = 2
     self.bool_flag = 0
     self.i_c_winner = 0
     self.real_winner = 0
     self.winner_counter = 0
     self.previous_winner = 0
     self.counter_lost = 0
     self.strategy_ctr = 0
     self.gamble_counter = 0
     self.someone_jack_pot = 0
     self.array_of_colors = []
     self.super_double = 0
     self.use_super_double = False
     
     self.COUNTER_LOST_CONST = 5
     self.COUNTER_LOST_CONST_FOLLOW = 5
     self.COUNTER_LOST_CONST_NEGATIVE = 5
     #self.strategy = "NEGATIVE_WINNER";
     #self.strategy = "DOUBLE_SELECTION"
     #self.strategy = "FOLLOW_WINNER"
     self.strategy = "RANDOM_CHOICE"
     _str = "INITIAL STRATEGY IS: " + self.strategy + "\n"
     print _str
     self.write_to_file(_str)
     self.init_colors_from_file()
Ejemplo n.º 2
0
 def __init__(self):        
     self.autoit = autoIt()
     self.ray_mouse = ray_mouse(self.autoit)        
     self.file_for_results = "color_tests_result.txt"
     # play for fun:
     #self.target_window_name = "RAY Kasino - Tuplapotti - Mozilla Firefox"
     #play for money:
     self.target_window_name = "RAY Kasino - MAKSIM345 - Tuplapotti - Mozilla Firefox"
     self.iterNumbers = 20
     self.sleepTime = 100
Ejemplo n.º 3
0
 def __init__(self):
     self.autoit = autoIt()
     self.ray_mouse = ray_mouse(self.autoit)