guidopetri / chess-pipeline

Pulling games from the Lichess API into a PostgreSQL database for data analysis.
GNU General Public License v3.0
20 stars 2 forks source link

Pawn promotion visitor #7

Closed guidopetri closed 4 years ago

guidopetri commented 4 years ago

It could be useful to know whether a game had a pawn promote or not. This should be fairly straightforward to implement - in fact, there might be something easy in python.chess that helps us find this in a game, we might not even need a Visitor.

guidopetri commented 4 years ago

Working in 7a6dbd3 . I separated by color since I figured (about halfway through, lol) that it'd be more useful to have it that way instead of a global aggregate.