From 336f12d98761c8e1f3ebaac6b26c844aef6f2627 Mon Sep 17 00:00:00 2001 From: kraktus Date: Thu, 28 May 2026 12:46:47 +0200 Subject: [PATCH] fix `chess960_pos` doc, 0..959 not 956 --- chess/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chess/__init__.py b/chess/__init__.py index 9ea44f36..52089f1f 100644 --- a/chess/__init__.py +++ b/chess/__init__.py @@ -2817,7 +2817,7 @@ def set_chess960_pos(self, scharnagl: int) -> None: def chess960_pos(self, *, ignore_turn: bool = False, ignore_castling: bool = False, ignore_counters: bool = True) -> Optional[int]: """ - Gets the Chess960 starting position index between 0 and 956, + Gets the Chess960 starting position index between 0 and 959, or ``None`` if the current position is not a Chess960 starting position.