Skip to content

Commit 3133816

Browse files
committed
docs(api): document non-null precondition for getAiMove output pointers
1 parent 7cbbd9e commit 3133816

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Negamax/negamax.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ extern "C"
4040
* - out_col: Output pointer for selected column (0-based). Set to -1 if the game is already terminal
4141
*
4242
* Behavior:
43+
* - out_row and out_col must be non-null
4344
* - If aiPlayer is not 'x' or 'o', returns (-1, -1)
4445
* - If the board is invalid (x_pieces & o_pieces != 0), returns (-1, -1)
4546
* - If the board is terminal (win/tie), returns (-1, -1)

0 commit comments

Comments
 (0)