countmoves_tests.c (186B)
1 #include "../test.h" 2 3 int64_t countmoves(const char *); 4 5 void run(void) { 6 char movestr[STRLENMAX]; 7 8 fgets(movestr, STRLENMAX, stdin); 9 10 printf("%" PRId64 "\n", countmoves(movestr)); 11 }
![]() | h48A prototype for an optimal Rubik's cube solver, work in progress. |
git clone https://git.tronto.net/h48 | |
Download | Log | Files | Refs | README | LICENSE |
countmoves_tests.c (186B)
1 #include "../test.h" 2 3 int64_t countmoves(const char *); 4 5 void run(void) { 6 char movestr[STRLENMAX]; 7 8 fgets(movestr, STRLENMAX, stdin); 9 10 printf("%" PRId64 "\n", countmoves(movestr)); 11 }