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

@ -29,14 +29,6 @@ class LSECube:
self.reset()
def reset(self):
# self.edges = {
# "UB": Edge("UB", True),
# "UR": Edge("UR", True),
# "UF": Edge("UF", True),
# "UL": Edge("UL", True),
# "DB": Edge("DB", True),
# "DF": Edge("DF", True),
# }
self.edges = {
"UB": Edge("UB", True),
"UR": Edge("UR", True),
@ -70,6 +62,7 @@ class LSECube:
eolrb_state[location] = Edge("", edge.oriented)
eolrb_state["center_oriented"] = self.centers["U"] in ["U", "D"]
# the value of UFR is supposed to be the key of the value "UFR" in self.corners but whatever
eolrb_state["UFR"] = self.corners["UFR"]
return int(