Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 533 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 533 Bytes

Generating puzzles

  1. Build binaries

    make -C ..
    
  2. Process a PGN dump into a filtered list of games (1 game per line)

    make INPUT=foo.pgn OUTPUT=games.jz
    
  3. Generate puzzles

    # Analyze all games for all kinds of puzzles
    make puzzles-all INPUT=games.jz OUTPUT=puzzles-all
    
    # Analyze only games 100-149
    make puzzles INPUT=games.jz OUTPUT=p START=100 END=149
    
  4. Convert to JSON and update manifest

    make json-all
    make -C out js-all