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

invcoord_esep_tests.c (314B)


      1 #include "../test.h"
      2 
      3 int64_t coord_esep(cube_t);
      4 cube_t invcoord_esep(int64_t);
      5 
      6 void run(void) {
      7 	char str[STRLENMAX];
      8 	cube_t cube;
      9 	int64_t i;
     10 
     11 	fgets(str, STRLENMAX, stdin);
     12 	cube = readcube("H48", str);
     13 
     14 	i = coord_esep(cube);
     15 	cube = invcoord_esep(i);
     16 	i = coord_esep(cube);
     17 
     18 	printf("%" PRId64 "\n", i);
     19 }