h48

A prototype for an optimal Rubik's cube solver, work in progress.
git clone https://git.tronto.net/h48
Download | Log | Files | Refs | README | LICENSE

commit 75966319fd5891c2c1bd35b1f7c93eab172fd28e
parent 15a072db18e441db5aa9e5339341fa1a466b504a
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Fri, 10 May 2024 08:55:03 +0200

Moved to src/

Diffstat:
MMakefile | 6+++---
Rcube.c -> src/cube.c | 0
Rcube.h -> src/cube.h | 0
Mutils/genmovecode.sh | 2+-
Mutils/gentranscode.sh | 4++--
Mutils/h48_to_lst.c | 2+-
Mutils/invert.c | 2+-
7 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/Makefile b/Makefile @@ -3,13 +3,13 @@ include config.mk all: cube.o debugcube.o cube.s: clean - ${CC} -D${CUBETYPE} ${CFLAGS} -c -S -o cube.s cube.c + ${CC} -D${CUBETYPE} ${CFLAGS} -c -S -o cube.s src/cube.c cube.o: clean - ${CC} -D${CUBETYPE} ${CFLAGS} -c -o cube.o cube.c + ${CC} -D${CUBETYPE} ${CFLAGS} -c -o cube.o src/cube.c debugcube.o: clean - ${CC} -D${CUBETYPE} ${DBGFLAGS} -c -o debugcube.o cube.c + ${CC} -D${CUBETYPE} ${DBGFLAGS} -c -o debugcube.o src/cube.c clean: rm -rf *.o diff --git a/cube.c b/src/cube.c diff --git a/cube.h b/src/cube.h diff --git a/utils/genmovecode.sh b/utils/genmovecode.sh @@ -1,6 +1,6 @@ #!/bin/sh -gcc -DDEBUG h48_to_lst.c ../cube.c -o h48_to_lst +gcc -DDEBUG h48_to_lst.c ../src/cube.c -o h48_to_lst gen() { for f in move_??_*.txt; do diff --git a/utils/gentranscode.sh b/utils/gentranscode.sh @@ -1,7 +1,7 @@ #!/bin/sh -gcc -DDEBUG h48_to_lst.c ../cube.c -o h48_to_lst -gcc -DDEBUG invert.c ../cube.c -o invert +gcc -DDEBUG h48_to_lst.c ../src/cube.c -o h48_to_lst +gcc -DDEBUG invert.c ../src/cube.c -o invert lineavx() { printf '#define _trans_cube_%s ' "$1"; } linesrc() { printf '_static cube_fast_t _trans_cube_%s = ' "$1"; } diff --git a/utils/h48_to_lst.c b/utils/h48_to_lst.c @@ -2,7 +2,7 @@ #include <inttypes.h> #include <stdbool.h> -#include "../cube.h" +#include "../src/cube.h" #define STRLENMAX 1000 diff --git a/utils/invert.c b/utils/invert.c @@ -2,7 +2,7 @@ #include <inttypes.h> #include <stdbool.h> -#include "../cube.h" +#include "../src/cube.h" #define STRLENMAX 1000