dottxt-ai / outlines

Structured Text Generation
https://dottxt-ai.github.io/outlines/
Apache License 2.0
8.28k stars 424 forks source link

Add PGN grammar #635

Open rlouf opened 9 months ago

lapp0 commented 7 months ago

A PGN grammar is trivial to implement. I suggest we consider using it as a foundation for not only for checking the grammatical correctness but also for verifying the legitimacy of the game as a whole.

A game of chess between ChatGPT and Stockfish saw ChatGPT making illegal moves https://mtb.msu.domains/chess/introduction-to-chatgpt-vs-stockfish-and-game-1/

The integration of a simple chess verification library would act as a great base case that could allow for extension to other areas as well.