nissy-fmc

A Rubik's cube FMC assistant
git clone https://git.tronto.net/nissy-fmc
Download | Log | Files | Refs | README | LICENSE

commit d171279acb5f522e7dac010d86ccf12784759013
parent 4b5a5796f23a41086356891c4860898b0da5e3c8
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Mon,  1 May 2023 12:41:17 +0200

Initial commit to new github repo

Diffstat:
MREADME.md | 3+++
Msrc/coord.c | 1+
Msrc/coord.h | 11++++++-----
Msrc/steps.c | 6+++---
4 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/README.md b/README.md @@ -1 +1,4 @@ # Work in progress + +See +[my blog post](https://sebastiano.tronto.net/blog/2023-04-10-the-big-rewrite) diff --git a/src/coord.c b/src/coord.c @@ -383,6 +383,7 @@ gen_coord(Coordinate *coord) if (coord == NULL || coord->generated) return; + /* TODO: for SYM_COORD, we do not want to save base to file */ for (i = 0; i < 2; i++) gen_coord(coord->base[i]); diff --git a/src/coord.h b/src/coord.h @@ -15,6 +15,7 @@ typedef struct coordinate { uint64_t *ttable[NTRANS]; TransGroup *tgrp; struct coordinate *base[2]; + uint64_t *symclass; uint64_t *symrep; Trans *transtorep; @@ -22,14 +23,14 @@ typedef struct coordinate { bool generated; Indexer *i[99]; - uint64_t *selfsim; /* used only in fixnasty */ + uint64_t *selfsim; - Moveset *moveset; /* for pruning, mt and compressing */ + Moveset *moveset; uint64_t updated; entry_group_t *ptable; - int ptablebase; /* Renamed */ - bool compact; /* Only needed for generation, maybe keep */ - uint64_t count[16]; /* Only needed for generation and print */ + int ptablebase; + bool compact; + uint64_t count[16]; } Coordinate; void gen_coord(Coordinate *); diff --git a/src/steps.c b/src/steps.c @@ -171,9 +171,9 @@ Coordinate coord_drudfin_noE_sym16 = { }; Coordinate *coordinates[] = { - &coord_eofb, &coord_coud, &coord_cp, &coord_epos, &coord_epe, - &coord_eposepe, &coord_epud, &coord_eofbepos, &coord_eofbepos_sym16, - &coord_drud_sym16, &coord_cp_sym16, &coord_drudfin_noE_sym16, + &coord_eofb, &coord_coud, &coord_cp_sym16, &coord_epos, &coord_epe, + &coord_eposepe, &coord_epud, &coord_eofbepos_sym16, + &coord_drud_sym16, &coord_drudfin_noE_sym16, NULL };