nissy-core

The "engine" of nissy, including the H48 optimal solver.
git clone https://git.tronto.net/nissy-core
Download | Log | Files | Refs | README | LICENSE

symmetry_mask_tests.c (332B)


      1 #include "../test.h"
      2 
      3 uint64_t symmetry_mask(cube_t);
      4 
      5 void run(void) {
      6 	char str[STRLENMAX];
      7 	uint64_t i, result;
      8 	oriented_cube_t cube;
      9 
     10 	fgets(str, STRLENMAX, stdin);
     11 	cube = readcube(str);
     12 	result = symmetry_mask(cube.cube); 
     13 
     14 	for (i = 0; i < 48; result >>= 1, i++)
     15 		printf("%" PRIu64, result % UINT64_C(2));
     16 	printf("\n");
     17 }