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 }
![]() | nissy-coreThe "engine" of nissy, including the H48 optimal solver. |
git clone https://git.tronto.net/nissy-core | |
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 }