aboutsummaryrefslogtreecommitdiff
path: root/src/moves.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-05-01 12:48:55 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2023-05-01 12:48:55 +0200
commit6f4313bc1ed5be794146e6ca2fd73f48c7906061 (patch)
treea79c8be8613e8b4256d609477f98f440bfd7168c /src/moves.h
parent1a5bfe9b08707b0aef748d7921a419ba4a046fba (diff)
downloadnissy-classic-6f4313bc1ed5be794146e6ca2fd73f48c7906061.tar.gz
nissy-classic-6f4313bc1ed5be794146e6ca2fd73f48c7906061.zip
Reverted to 2.0.3
Diffstat (limited to '')
-rw-r--r--src/moves.h23
1 files changed, 18 insertions, 5 deletions
diff --git a/src/moves.h b/src/moves.h
index 4e8be7f..14ae087 100644
--- a/src/moves.h
+++ b/src/moves.h
@@ -5,11 +5,24 @@
5#include "cube.h" 5#include "cube.h"
6#include "env.h" 6#include "env.h"
7 7
8void apply_alg(Alg *alg, Cube *cube); 8/*
9void apply_move(Move m, Cube *cube); 9 * Tables are exposed to allow for faster moves in some cases.
10void apply_move_centers(Move m, Cube *cube); 10 */
11void apply_move_corners(Move m, Cube *cube); 11extern int epose_mtable[NMOVES][FACTORIAL12/FACTORIAL8];
12void apply_move_edges(Move m, Cube *cube); 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
23Cube apply_alg(Alg *alg, Cube cube);
24Cube apply_alg_generic(Alg *alg, Cube c, PieceFilter f, bool a);
25Cube apply_move(Move m, Cube cube);
13Alg * cleanup(Alg *alg); 26Alg * cleanup(Alg *alg);
14 27
15void init_moves(); 28void init_moves();

Generated with cgit - Back to sebastiano.tronto.net