class TrialGrid(): | |
def __init__(self, initial_grid, row_col_digit_position): | |
self.initial_grid=initial_grid | |
self.row_col_digit_position = row_col_digit_position | |
self.neg_result=None | |
self.pos_result=None | |
self.tried_grid = [] | |
def score(self): | |
# currently return 0 if find a good path else 1 (I'm too lazy) | |
if "fail" in [self.neg_result, self.pos_result]: | |
return 0 | |
if "complete" in [self.neg_result, self.pos_result]: | |
return 0 | |
if None in [self.neg_result, self.pos_result]: | |
return None | |
return 1 | |