backtrack.py
This commit is contained in:
parent
2265cfbcb5
commit
a7809f62ef
|
@ -53,8 +53,11 @@ def get_constraints(board: list, border: list, pos: int) -> list:
|
|||
constraints = []
|
||||
print(f'{board_dim=}, {pos=}, {col_idx=}, {row_idx=}')
|
||||
print(f'{border=}')
|
||||
# return constraints
|
||||
return True
|
||||
colup = border[row_idx]
|
||||
coldown = border[row_idx]
|
||||
rowleft = border[row_idx]
|
||||
rowright = border[row_idx]
|
||||
return constraints
|
||||
|
||||
def is_valid_state(board: list, border: list, next_candidate_index: int) -> bool:
|
||||
print_board(board, border)
|
||||
|
|
Loading…
Reference in New Issue