Skip to content

API Feature Request: Send full FEN on all /api/stream/game/{id} events #12357

@trevorbayless

Description

@trevorbayless

This is an API feature request to send the full FEN on all /api/stream/game/{id} events. This would be beneficial specifically for Crazyhouse and Three-Check as the FEN contains unique parts (such as the crazyhouse pocket and check counter).

Currently, the full FEN is only sent in the first message. Follow up messages only contain the board FEN.

Example:

{"id":"TQUh1YtP","variant":{"key":"threeCheck","name":"Three-check","short":"3check"},"speed":"bullet","perf":"threeCheck","rated":true,"fen":"2k3r1/p1pq1p1N/1p2p2P/3pP2R/3P1Q2/2P4K/P1P2P1r/5R2 w - - 3 27 +0+3","player":"white","turns":52,"startedAtTurn":0,"source":"friend","status":{"id":60,"name":"variantEnd"},"createdAt":1676145078042,"winner":"black","lastMove":"g2h2","check":"h3","drawOffers":[52],"players":{"white":{"user":{"name":"Frido1802","id":"frido1802"},"rating":1856,"ratingDiff":-44,"provisional":true},"black":{"user":{"name":"Professor_Eisenstahl","id":"professor_eisenstahl"},"rating":1890,"ratingDiff":26}}}
...
{"fen":"2k3r1/p1pq1p1N/1p2p2P/3pP2R/3P1Q2/2P5/P1P2PrK/5R2 w","lm":"g6g2","wc":2,"bc":14}
{"fen":"2k3r1/p1pq1p1N/1p2p2P/3pP2R/3P1Q2/2P4K/P1P2Pr1/5R2 b","lm":"h2h3","wc":1,"bc":14}
{"fen":"2k3r1/p1pq1p1N/1p2p2P/3pP2R/3P1Q2/2P4K/P1P2P1r/5R2 w","lm":"g2h2","wc":1,"bc":11}

I'm using the endpoint above in an application I'm working on which has the ability to watch TV games. Providing the full FEN would allow for showing the Crazyhouse pocket and check count.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions