Skip to content

Chess trainer on PGN opening trees using tkinter GUI. Shows moves with arrows. Can read but also edit and save PGN. A small automatic PGN creator is also available.

License

Notifications You must be signed in to change notification settings

pathev/ChessTrainer

Repository files navigation

The aim of ChessTrainer program is to train on opening chess books.

Given a PGN file, preferably on a single tree (one game, but with many variations), the computer chooses a random variation from the opponent's moves and asks the best move (or one of the bests if more are accepted) to the player, in other words the main variation of the position (or one of the following ones, depending on the desired limit).

It is possible to use a PGN with several games ; one can imagine that each game is in this case a different opening model.

One can start the training on: a random game, the current game or even the current position.

The random choice of move from variations can be uniform, but also order dependant, which means the firsts variations will be more likely to be chosen than the nexts ones (using a beta-binomial distribution).

PGN files can be slightly edited, e.g. by adding comments and arrows with four different colors using right-clic with ctrl and/or alt keys.

Another program, AutoPGN, not integrated in ChessTrainer, allows to build PGN files with stockfish, possibly from a position in fen format.

Both programs require the addition of the chess package created by Niklas Fiekas:
https://github.com/niklasf/python-chess

ChessTrainer also needs scipy package:
https://github.com/scipy/scipy

You also need to have the stockfish chess engine installed to be able to start the analysis.
It is possible to modify the address of the executable, and also to modify some options.

About

Chess trainer on PGN opening trees using tkinter GUI. Shows moves with arrows. Can read but also edit and save PGN. A small automatic PGN creator is also available.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages