aboutsummaryrefslogtreecommitdiff
path: root/src/moves.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano.tronto@gmail.com>2022-03-15 15:54:39 +0100
committerSebastiano Tronto <sebastiano.tronto@gmail.com>2022-03-15 15:54:39 +0100
commite18f8e4eefadd733d985e99e2710111afa5a710a (patch)
tree196033c8f04e760b8b6f4d445c70ca17143e0179 /src/moves.h
parentdef25ea64b097d2a994eb33c91dc66248233afec (diff)
downloadnissy-e18f8e4eefadd733d985e99e2710111afa5a710a.tar.gz
nissy-e18f8e4eefadd733d985e99e2710111afa5a710a.zip
Prepare for big changes in coordinates
Diffstat (limited to '')
-rw-r--r--src/moves.h15
1 files changed, 15 insertions, 0 deletions
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 @@
5#include "cube.h" 5#include "cube.h"
6#include "env.h" 6#include "env.h"
7 7
8/*
9 * Tables are exposed to allow for faster moves in some cases.
10 */
11extern int epose_mtable[NMOVES][FACTORIAL12/FACTORIAL8];
12extern int eposs_mtable[NMOVES][FACTORIAL12/FACTORIAL8];
13extern int eposm_mtable[NMOVES][FACTORIAL12/FACTORIAL8];
14extern int eofb_mtable[NMOVES][POW2TO11];
15extern int eorl_mtable[NMOVES][POW2TO11];
16extern int eoud_mtable[NMOVES][POW2TO11];
17extern int cp_mtable[NMOVES][FACTORIAL8];
18extern int coud_mtable[NMOVES][POW3TO7];
19extern int cofb_mtable[NMOVES][POW3TO7];
20extern int corl_mtable[NMOVES][POW3TO7];
21extern int cpos_mtable[NMOVES][FACTORIAL6];
22
8Cube apply_alg(Alg *alg, Cube cube); 23Cube apply_alg(Alg *alg, Cube cube);
9Cube apply_alg_generic(Alg *alg, Cube c, PieceFilter f, bool a); 24Cube apply_alg_generic(Alg *alg, Cube c, PieceFilter f, bool a);
10Cube apply_move(Move m, Cube cube); 25Cube apply_move(Move m, Cube cube);

Generated with cgit - Back to sebastiano.tronto.net