Skip to content

Skipped turn after pawn promotion. #4

@radi-cho

Description

@radi-cho

RSG-Group/RSG-Chess-API#15 (comment)

@retrixe has reported a case of a skipped move after pawn promotion.
game.turn history to be used for reproducing the issue:

[{"x":6,"y":7},{"x":5,"y":5},{"x":7,"y":1},{"x":7,"y":3},{"x":1,"y":7},{"x":2,"y":5},{"x":6,"y":1},{"x":6,"y":2},{"x":6,"y":6},{"x":6,"y":5},{"x":5,"y":1},{"x":5,"y":3},{"x":5,"y":7},{"x":7,"y":5},{"x":7,"y":3},{"x":7,"y":4},{"x":1,"y":6},{"x":1,"y":4},{"x":7,"y":4},{"x":6,"y":5},{"x":5,"y":6},{"x":6,"y":5},{"x":7,"y":0},{"x":7,"y":5},{"x":5,"y":5},{"x":6,"y":3},{"x":7,"y":5},{"x":7,"y":0},{"x":2,"y":5},{"x":3,"y":3},{"x":5,"y":3},{"x":5,"y":4},{"x":3,"y":3},{"x":5,"y":4},{"x":4,"y":1},{"x":4,"y":3},{"x":5,"y":4},{"x":6,"y":2},{"x":3,"y":0},{"x":6,"y":3},{"x":6,"y":2},{"x":7,"y":0},{"x":5,"y":0},{"x":1,"y":4},{"x":2,"y":7},{"x":1,"y":6},{"x":4,"y":3},{"x":4,"y":4},{"x":0,"y":6},{"x":0,"y":5},{"x":1,"y":4},{"x":5,"y":0},{"x":3,"y":6},{"x":3,"y":5},{"x":4,"y":4},{"x":3,"y":5},{"x":4,"y":6},{"x":3,"y":5},{"x":6,"y":3},{"x":7,"y":2},{"x":0,"y":5},{"x":0,"y":4},{"x":7,"y":2},{"x":4,"y":5},{"x":3,"y":7},{"x":4,"y":6},{"x":4,"y":5},{"x":4,"y":6},{"x":4,"y":7},{"x":4,"y":6},{"x":3,"y":1},{"x":3,"y":3},{"x":7,"y":0},{"x":6,"y":2},{"x":5,"y":0},{"x":1,"y":4},{"x":6,"y":2},{"x":5,"y":4},{"x":1,"y":4},{"x":5,"y":0},{"x":5,"y":4},{"x":3,"y":3},{"x":2,"y":1},{"x":2,"y":3},{"x":3,"y":3},{"x":2,"y":1},{"x":4,"y":0},{"x":3,"y":0},{"x":2,"y":1},{"x":0,"y":0},{"x":0,"y":1},{"x":0,"y":3},{"x":0,"y":0},{"x":1,"y":2},{"x":2,"y":0},{"x":7,"y":5},{"x":1,"y":2},{"x":2,"y":4},{"x":7,"y":5},{"x":6,"y":6},{"x":7,"y":7},{"x":6,"y":7},{"x":6,"y":6},{"x":7,"y":5},{"x":2,"y":4},{"x":0,"y":3},{"x":1,"y":1},{"x":1,"y":2},{"x":0,"y":3},{"x":1,"y":1},{"x":3,"y":0},{"x":4,"y":0},{"x":1,"y":1},{"x":2,"y":3},{"x":1,"y":2},{"x":2,"y":3},{"x":6,"y":7},{"x":5,"y":7},{"x":7,"y":5},{"x":5,"y":7},{"x":4,"y":6},{"x":5,"y":7},{"x":6,"y":0},{"x":7,"y":2},{"x":2,"y":6},{"x":2,"y":5},{"x":7,"y":2},{"x":6,"y":0},{"x":3,"y":5},{"x":3,"y":4},{"x":2,"y":3},{"x":3,"y":4},{"x":2,"y":5},{"x":3,"y":4},{"x":6,"y":0},{"x":5,"y":2},{"x":3,"y":4},{"x":3,"y":3},{"x":5,"y":2},{"x":3,"y":3},{"x":5,"y":7},{"x":6,"y":7},{"x":3,"y":3},{"x":2,"y":1},{"x":0,"y":7},{"x":4,"y":7},{"x":4,"y":0},{"x":3,"y":0},{"x":4,"y":7},{"x":5,"y":7},{"x":5,"y":0},{"x":1,"y":4},{"x":5,"y":7},{"x":3,"y":7},{"x":3,"y":0},{"x":4,"y":0},{"x":1,"y":6},{"x":4,"y":3},{"x":1,"y":4},{"x":5,"y":0},{"x":4,"y":3},{"x":2,"y":1},{"x":1,"y":0},{"x":0,"y":2},{"x":2,"y":1},{"x":3,"y":2},{"x":5,"y":0},{"x":3,"y":2},{"x":3,"y":7},{"x":3,"y":2},{"x":0,"y":2},{"x":1,"y":0},{"x":3,"y":2},{"x":1,"y":2},{"x":1,"y":0},{"x":3,"y":1},{"x":1,"y":2},{"x":1,"y":7},{"x":3,"y":1},{"x":5,"y":0},{"x":1,"y":7},{"x":3,"y":7},{"x":5,"y":0},{"x":4,"y":2},{"x":0,"y":4},{"x":0,"y":3},{"x":4,"y":2},{"x":5,"y":0},{"x":0,"y":3},{"x":0,"y":2},{"x":5,"y":0},{"x":4,"y":2},{"x":0,"y":2},{"x":0,"y":1},{"x":4,"y":2},{"x":5,"y":0},{"x":0,"y":1},{"x":0,"y":0},{"x":5,"y":0},{"x":4,"y":2},{"x":0,"y":0},{"x":4,"y":0}]

...think it skipped the other player's move or failed to detect a check on the king since I didn't notice exactly what happened during the gameplay.

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