def generate_mines(self):
    mine_list = []
    while (len(mine_list) < self.mine_numbers):
        x = randrange(self.size)
        y = randrange(self.size)
        if ((x, y) not in mine_list):
            mine_list.append((x, y))
    return mine_list
def generate_mines(self):
    mine_list = []
    while (len(mine_list) < self.mine_numbers):
        x = randrange(self.size)
        y = randrange(self.size)
        if ((x, y) not in mine_list):
            mine_list.append((x, y))
    return mine_list