Analyses games and positions. Possible to have a Game Report similar to the one from chess.com, including graphs.
Project description
pythonChessAnalyzer
Analyses games and positions. Possible to have a Game Report similar to the one from chess.com, including graphs.
Installation
Use the package manager pip to install pythonChessAnalyzer.
pip install chessAnalyzer
Usage
import os, chessAnalyzer, chessAnalyzer.main
# Always use a string for file paths!
ca = chessAnalyzer.main.AnnotatePosition(0.5, os.getcwd(), <engine file path(string)>)
ca.graph(pgn_loc, end_loc) # creates a graph
annotated_pgn = ca.annotate_game(pgn_loc) # annotates game
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
chessAnalyzer-0.1.0.tar.gz
(8.4 kB
view hashes)
Built Distribution
Close
Hashes for chessAnalyzer-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37f653bcd820a4abb3539db90abfa97bd9688a6e178e6b0f8f443fa4f4669f66 |
|
MD5 | 6dbf9507f7171aff5fe92e113b6e1f64 |
|
BLAKE2b-256 | 695f72345da5ef4e0126eb231b863c616b9a5fc6fbf69ffd6089058b90615584 |