Skip to content

Feature request: add position-based move resultsΒ #317

@nrouzaud38

Description

@nrouzaud38

Hi πŸ‘‹

Opening Explorer currently exposes branch-based move results (W/D/L) depending on the move history (play). While useful, under transpositions the same resulting position can show different results for the same move, which can be confusing.

It would be very helpful to include position-based stats in the move results currently branch-based, so that all relevant results are available in a single request.

Example

  1. GET /masters?variant=standard&play=d2d4,g7g6,b1c3,f8g7
    β†’ move "e4": branchWhite 29, branchDraws 27, branchBlack 38 β†’ white 30%

  2. GET /masters?variant=standard&play=d2d4,g7g6,e2e4,f8g7
    β†’ move "Nc3": branchWhite 8775, branchDraws 7493, branchBlack 6930 β†’ white 38%

  3. GET /masters?variant=standard&
    fen=rnbqk1nr/ppppppbp/6p1/8/3PP3/2N5/PPP2PPP/R1BQKBNR b KQkq - 0 3
    β†’ position results: posWhite 8867, posDraws 7581, posBlack 7034 β†’ white 38%

The result of request 3 (position stats) could be included in the details of requests 1 and 2 (branch-based moves).

Proposal

Add position-based W/D/L fields for each move (existing fields remain unchanged)

This ensures consistent, transposition-invariant statistics for all moves in a single request, which will be very useful for users.

Reference
Forum discussion:
https://lichess.org/forum/lichess-feedback/incoherent-opening-statistics#1

Thanks for considering this πŸ™‚

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