项目作者: zcesur

项目描述 :
Build opening repertoires from chess games in PGN format
高级语言: Rust
项目地址: git://github.com/zcesur/opening-repertoire.git
创建时间: 2020-12-06T19:10:17Z
项目社区:https://github.com/zcesur/opening-repertoire

开源协议:BSD 3-Clause "New" or "Revised" License

下载


OpeningRepertoire

OpeningRepertoire is a command line tool that generates opening repertoires from chess games in PGN format. The output can be imported into a study tool that lets you analyze (e.g. lichess) or practice (e.g. chessable) your repertoire.

Installation

Use the package manager cargo to install opening-repertoire.

  1. cargo install --git https://github.com/zcesur/opening-repertoire

Usage

  1. opening-repertoire [FLAGS] [OPTIONS] --color <COLOR> --path <FILE>
  2. FLAGS:
  3. --disable-pruning By default, moves are pruned with respect to the repertoire color such that there is a
  4. single response for each opponent move
  5. -h, --help Prints help information
  6. -V, --version Prints version information
  7. OPTIONS:
  8. -c, --color <COLOR> Repertoire color: either 'white' or 'black'
  9. -d, --inode-max-depth <NUM> Maximum depth of variations that stem from internal (non-leaf) nodes [default: 8]
  10. -m, --max-moves <NUM> Maximum number of moves [default: 10]
  11. -t, --output-type <STRING> Type of output: either 'pgn', 'json', 'json-pretty' or 'tree' [default: pgn]
  12. -p, --path <FILE> path/to/games.pgn
  13. -s, --starting-moves <STRING> Filter games by some comma-separated starting moves, e.g. 'e4,c5'

Example

Let’s build a white repertoire against the Sicilian Defence (1. e4 c5):

  1. wget https://raw.githubusercontent.com/zcesur/opening-repertoire/master/data/ericrosen-white.pgn
  2. opening-repertoire -p ericrosen-white.pgn -c white -s e4,c5

Contributing

Pull requests are welcome!

License

Distributed under the BSD 3-Clause License. See the LICENSE file for more information.