Skip to content

Add unique id to each move and a seekById() function for direct navigation #7

@lucaspessivaldo

Description

@lucaspessivaldo

Currently, each move in the chess move tree does not have a unique identifier. This makes it difficult to reference a specific move in the UI, especially when dealing with variations. Without a unique ID, implementing clickable move navigation (like on chess.com or Lichess) is cumbersome, and jumping directly to a move in the mainline or a variation is not too easy.

Proposed Solution:
Assign a unique id to every move when it is created. Implement a seekById() function that, given a move’s id, finds the corresponding move in the tree and updates the pointer to that position.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions