Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

CoderAryanAnand/pythonChessAnalyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

14 Commits

Repository files navigation

pythonChessAnalyzer

Analyses games and positions. Possible to have a Game Report similar to the one from chess.com, including graphs.

Requirements

You need chess and plotly(and everything that plotly needs).

pip install chess
pip install plotly

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

MIT

About

Analyses games and positions. Possible to have a Game Report similar to the one from chess.com, including graphs.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /