def make_move(self):
     #First check for 5-in-a-row
     if not logic.basic_detect_five(self.board, self.gem_keys, self.swap):
         #Failing that, check for 4-in-a-row
         if not logic.basic_detect_four(self.board, self.gem_keys, self.swap):
             #Failing that, check for 3-in-a-row
             logic.basic_detect_three(self.board, self.gem_keys, self.swap)
     #Always make a random move every time make_move is called, this can help
     #get us unstuck if that happens
     self.random_move()
示例#2
0
 def make_move(self):
     logic.basic_detect_three(self.board, self.gem_keys, self.swap)