Skip to content

First Release

Compare
Choose a tag to compare
@CoderAryanAnand CoderAryanAnand released this 23 Dec 18:55
· 9 commits to main since this release
89d4937

pythonChessAnalyzer

Analyses games and positions. Possible to have a Game Report similar to the one from chess.com, including graphs.
Also has a Coordinate trainer(author: Stephen Ryan)

Installation

Use the package manager pip to install pythonChessAnalyzer.

pip install chessAnalyzer

Usage

import chessAnalyzer, os

ca = chessAnalyzer.main.AnnotatePosition(0.5, os.cwd(), <engine(optional)>)

ca.graph(pgn_loc, end_loc) # creates a graph
annotated_pgn = ca.annotate_game(pgn_loc) # annotates game
ca.train_coordinates() # trains coordinates
white_lost_positions: list, black_lost_positions: list, annotated game: list = ca.game_report(pgn_loc, annotate=True) # gets you a game report(saves graph elsewhere)
# and more!

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Thanks

Niklas Fiekas for python-chess
Stephen Ryan for chess-coordinate-trainer
Medium for chess graphs(I edited a lot of it after though)
Me