trans.h (600B)
1 #ifndef TRANS_H 2 #define TRANS_H 3 4 #include "moves.h" 5 6 void apply_trans(Trans t, Cube *cube); 7 Trans inverse_trans(Trans t); 8 Alg * rotation_alg(Trans i); 9 void transform_alg(Trans t, Alg *alg); 10 Move transform_move(Trans t, Move m); 11 Trans transform_trans(Trans t, Trans m); 12 13 void init_trans(); 14 15 #ifndef TRANS_C 16 17 extern TransGroup tgrp_udfix; 18 19 #else 20 21 TransGroup 22 tgrp_udfix = { 23 .n = 16, 24 .t = { uf, ur, ub, ul, 25 df, dr, db, dl, 26 uf_mirror, ur_mirror, ub_mirror, ul_mirror, 27 df_mirror, dr_mirror, db_mirror, dl_mirror }, 28 }; 29 30 #endif 31 32 #endif