File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -28,3 +28,9 @@ cargo run
28
28
需要安装trunk ` cargo install --locked trunk `
29
29
30
30
然后运行 ` trunk serve ` , 打开http://127.0.0.1:8080
31
+
32
+ ## References
33
+
34
+ - https://ruwix.com/
35
+ - https://worldcubeassociation.org/regulations/#article-12-notation
36
+ - https://www.jaapsch.net/puzzles/thistle.htm
Original file line number Diff line number Diff line change @@ -466,7 +466,7 @@ fn generate_command(
466
466
} else if piece_translation. x . round ( ) == 0.0 {
467
467
return Move :: M ( rotate) ;
468
468
} else {
469
- return Move :: R ( rotate) ;
469
+ return Move :: R ( rotate. inverse ( ) ) ;
470
470
}
471
471
}
472
472
} else {
@@ -521,7 +521,7 @@ fn solve_puzzle(
521
521
let solution = solve ( & cube_setting. cube ) ;
522
522
if let Some ( s) = solution {
523
523
if cube_setting. cube . apply_moves ( & s) . is_solved ( ) {
524
- println ! ( "solved" ) ;
524
+ info ! ( "solved in {} step" , s . len ( ) ) ;
525
525
for command in s {
526
526
move_seq. push_back ( command) ;
527
527
}
You can’t perform that action at this time.
0 commit comments