AttackingOrDefending / pydraughts

A draughts (checkers) library for Python with move generation, PDN reading and writing, engine communication and balloted openings
MIT License
13 stars 5 forks source link

Add type hints for functions and classes #10

Closed AttackingOrDefending closed 2 years ago

AttackingOrDefending commented 2 years ago

Not added in all of the code, only in function parameters and outputs (not in variables), so running with mypy will still print errors. Also made a few small changes. The reason for this change is to make future development easier, so people don't have to search through the code to find the input and output types.