From 3d6c73c33276ecedba86cb871b4b5a089571629b Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Fri, 18 Oct 2024 12:21:51 +0200 Subject: New interface function nissy_countmoves --- src/nissy.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/nissy.h') diff --git a/src/nissy.h b/src/nissy.h index 8f4f363..7a39927 100644 --- a/src/nissy.h +++ b/src/nissy.h @@ -280,6 +280,19 @@ long long nissy_solve( char sols[sols_size] ); +/* +Parameters: + moves - The moves to be counted. + +Return values: + NISSY_ERROR_INVALID_MOVES - The given moves are invalid. + NISSY_ERROR_NULL_POINTER - The 'moves' argument is NULL. + Any value >= 0 - The number of moves. +*/ +long long nissy_countmoves( + const char *moves +); + /* Set a global logger function used by this library. -- cgit v1.3