From e18f8e4eefadd733d985e99e2710111afa5a710a Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Tue, 15 Mar 2022 15:54:39 +0100 Subject: Prepare for big changes in coordinates --- src/moves.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/moves.h') diff --git a/src/moves.h b/src/moves.h index e7881a4..14ae087 100644 --- a/src/moves.h +++ b/src/moves.h @@ -5,6 +5,21 @@ #include "cube.h" #include "env.h" +/* + * Tables are exposed to allow for faster moves in some cases. + */ +extern int epose_mtable[NMOVES][FACTORIAL12/FACTORIAL8]; +extern int eposs_mtable[NMOVES][FACTORIAL12/FACTORIAL8]; +extern int eposm_mtable[NMOVES][FACTORIAL12/FACTORIAL8]; +extern int eofb_mtable[NMOVES][POW2TO11]; +extern int eorl_mtable[NMOVES][POW2TO11]; +extern int eoud_mtable[NMOVES][POW2TO11]; +extern int cp_mtable[NMOVES][FACTORIAL8]; +extern int coud_mtable[NMOVES][POW3TO7]; +extern int cofb_mtable[NMOVES][POW3TO7]; +extern int corl_mtable[NMOVES][POW3TO7]; +extern int cpos_mtable[NMOVES][FACTORIAL6]; + Cube apply_alg(Alg *alg, Cube cube); Cube apply_alg_generic(Alg *alg, Cube c, PieceFilter f, bool a); Cube apply_move(Move m, Cube cube); -- cgit v1.3