fix nasty bug where eolr permutation would also change orientation
This commit is contained in:
@ -61,8 +61,7 @@ def create_eolrb_prune_table(prune_depth: int):
|
||||
for alg in generator:
|
||||
cube.reset()
|
||||
cube.alg(" ".join(alg))
|
||||
solution = reverse_algorithm(alg)
|
||||
prune_table[cube.eolrb_hash()].append(solution)
|
||||
prune_table[cube.eolrb_hash()].append(reverse_algorithm(alg))
|
||||
|
||||
return prune_table
|
||||
|
||||
@ -83,7 +82,7 @@ def solve_eolrb(cube: LSECube, prune_table: Dict, solve: int):
|
||||
for prune_solution in prune_table[c.eolrb_hash()]:
|
||||
alg = condense_algorithm(moves + prune_solution)
|
||||
# TODO: this is very weird
|
||||
for _ in range(10):
|
||||
for _ in range(5):
|
||||
alg = condense_algorithm(alg)
|
||||
if len(alg) > 2:
|
||||
# TODO: check if this is mc
|
||||
|
||||
Reference in New Issue
Block a user