fix nasty bug where eolr permutation would also change orientation

This commit is contained in:
2024-08-24 11:16:23 +03:00
parent 7e247e8980
commit 67e8c7a639
4 changed files with 5 additions and 13 deletions

View File

@ -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