Skip to content

Commit 2bbf0b5

Browse files
timgates42niklasf
authored andcommitted
docs: Fix a few typos
There are small typos in: - chess/__init__.py - chess/syzygy.py Fixes: - Should read `necessary` rather than `nescessary`. - Should read `occurred` rather than `occured`.
1 parent d93c0b2 commit 2bbf0b5

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

chess/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2045,7 +2045,7 @@ def can_claim_threefold_repetition(self) -> bool:
20452045
Checks if the player to move can claim a draw by threefold repetition.
20462046
20472047
Draw by threefold repetition can be claimed if the position on the
2048-
board occured for the third time or if such a repetition is reached
2048+
board occurred for the third time or if such a repetition is reached
20492049
with one of the possible legal moves.
20502050
20512051
Note that checking this can be slow: In the worst case
@@ -2070,7 +2070,7 @@ def can_claim_threefold_repetition(self) -> bool:
20702070
while switchyard:
20712071
self.push(switchyard.pop())
20722072

2073-
# Threefold repetition occured.
2073+
# Threefold repetition occurred.
20742074
if transpositions[transposition_key] >= 3:
20752075
return True
20762076

chess/syzygy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,7 @@ class Tablebase:
14951495
14961496
If *max_fds* is not ``None``, will at most use *max_fds* open file
14971497
descriptors at any given time. The least recently used tables are closed,
1498-
if nescessary.
1498+
if necessary.
14991499
"""
15001500
def __init__(self, *, max_fds: Optional[int] = 128, VariantBoard: Type[chess.Board] = chess.Board) -> None:
15011501
self.variant = VariantBoard

0 commit comments

Comments
 (0)