Archived
0
0

fix: 完善

This commit is contained in:
2025-12-14 11:23:23 +08:00
parent baa7ac8ee9
commit 4f054ed2e5
7 changed files with 325 additions and 66 deletions

View File

@@ -51,11 +51,11 @@ class MemScreen(Screen):
def puzzle_widget(self):
try:
print(self.phaser.state)
#print(self.phaser.state)
self.fission = Fission(self.procession.current_atom, self.phaser.state)
# print(1)
puzzle_info = next(self.fission.generate())
print(puzzle_info)
#print(puzzle_info)
return shim.puzzle2widget[puzzle_info["puzzle"]](
atom=self.procession.current_atom, alia=puzzle_info["alia"]
)
@@ -90,7 +90,9 @@ class MemScreen(Screen):
forwards = 1 if new_rating >= 4 else 0
self.rating = -1
if forwards:
self.procession.forward(1)
ret = self.procession.forward(1)
if ret == 0:
self.procession = self.phaser.current_procession() # type: ignore
self.load_puzzle()
def action_play_voice(self):