fix nasty bug where eolr permutation would also change orientation
This commit is contained in:
3
eolr.py
3
eolr.py
@ -69,8 +69,9 @@ def eolrb_states_generator(
|
||||
for auf in range(4):
|
||||
state = LSECube()
|
||||
apply_eolr_auf(state, auf)
|
||||
apply_eolr_orientation(state, ori)
|
||||
# applying permutation before orientation is crucial, as permutation swaps pieces and doesn't care about their orientation
|
||||
apply_eolr_permutation(state, perm)
|
||||
apply_eolr_orientation(state, ori)
|
||||
yield (state, ori, perm, auf)
|
||||
|
||||
return generator(), num_permutations
|
||||
|
||||
Reference in New Issue
Block a user