diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-18 12:21:51 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-18 12:21:51 +0200 |
| commit | 3d6c73c33276ecedba86cb871b4b5a089571629b (patch) | |
| tree | 8a68bb982d5d0bde2a8886af9aa146d3c16a8ba4 /src/nissy.h | |
| parent | 4f0403d24067c1f69b21cd29c5f9e5949e64c635 (diff) | |
| download | nissy-core-3d6c73c33276ecedba86cb871b4b5a089571629b.tar.gz nissy-core-3d6c73c33276ecedba86cb871b4b5a089571629b.zip | |
New interface function nissy_countmoves
Diffstat (limited to 'src/nissy.h')
| -rw-r--r-- | src/nissy.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nissy.h b/src/nissy.h index 8f4f363..7a39927 100644 --- a/src/nissy.h +++ b/src/nissy.h | |||
| @@ -281,6 +281,19 @@ long long nissy_solve( | |||
| 281 | ); | 281 | ); |
| 282 | 282 | ||
| 283 | /* | 283 | /* |
| 284 | Parameters: | ||
| 285 | moves - The moves to be counted. | ||
| 286 | |||
| 287 | Return values: | ||
| 288 | NISSY_ERROR_INVALID_MOVES - The given moves are invalid. | ||
| 289 | NISSY_ERROR_NULL_POINTER - The 'moves' argument is NULL. | ||
| 290 | Any value >= 0 - The number of moves. | ||
| 291 | */ | ||
| 292 | long long nissy_countmoves( | ||
| 293 | const char *moves | ||
| 294 | ); | ||
| 295 | |||
| 296 | /* | ||
| 284 | Set a global logger function used by this library. | 297 | Set a global logger function used by this library. |
| 285 | 298 | ||
| 286 | Parameters: | 299 | Parameters: |
