Skip to content

PV continues after threefold repetition #6138

@vondele

Description

@vondele

Describe the issue

fastchess after:

Disservin/fastchess#375
Disservin/fastchess@f3efcc6

generates the warning:

match_522999_3.log:Warning; PV continues after threefold repetition - move h2h1 from sf1
match_522999_3.log-Info; info depth 38 seldepth 4 multipv 1 score cp 0 nodes 64260 nps 535500 hashfull 42 tbhits 0 time 120 pv h1h2 f1f2 h2h1
match_522999_3.log-Position; fen rn2kbnr/p1p2ppp/1p1p4/3Pp3/4P3/2N2B2/PPP2PPP/R1B1K2R b KQkq - 0 8
match_522999_3.log-Moves; h7h5 a2a4 a7a6 b2b4 g7g6 f3e2 f7f5 e2d3 g8e7 e1g1 h5h4 f2f3 f8h6 c1h6 h8h6 a4a5 b6b5 c3b1 b8d7 c2c4 b5c4 d3c4 h6h8 b1c3 e8f7 f1b1 h8b8 c4f1 f5e4 f3e4 f7g7 b4b5 d7c5 b5a6 b8b1 a1b1 c5a6 b1a1 a6c5 a5a6 a8a7 f1c4 g7h6 g1f2 e7g8 c3a4 c5e4 f2e3 e4f6 a4c3 g8e7 e3d2 f6d7 c3b5 a7a8 a6a7 d7b6 c4d3 e7d5 d3e4 h6h5 a1a2 h5g5 d2e1 g5f6 a2c2 f6g5 c2a2 g5f6 a2c2 f6g5 h2h3 g5f4 e4g6 d5e7 g6d3 c7c6 c2f2 f4g3 b5c3 a8a7 c3e4 g3h2 g2g4 h2h1 f2f1 h1h2 f1f2 h2h1 f2f1

Expected behavior

would be nice if this could be fixed inside SF.

Steps to reproduce

position fen rn2kbnr/p1p2ppp/1p1p4/3Pp3/4P3/2N2B2/PPP2PPP/R1B1K2R b KQkq - 0 8 moves h7h5 a2a4 a7a6 b2b4 g7g6 f3e2 f7f5 e2d3 g8e7 e1g1 h5h4 f2f3 f8h6 c1h6 h8h6 a4a5 b6b5 c3b1 b8d7 c2c4 b5c4 d3c4 h6h8 b1c3 e8f7 f1b1 h8b8 c4f1 f5e4 f3e4 f7g7 b4b5 d7c5 b5a6 b8b1 a1b1 c5a6 b1a1 a6c5 a5a6 a8a7 f1c4 g7h6 g1f2 e7g8 c3a4 c5e4 f2e3 e4f6 a4c3 g8e7 e3d2 f6d7 c3b5 a7a8 a6a7 d7b6 c4d3 e7d5 d3e4 h6h5 a1a2 h5g5 d2e1 g5f6 a2c2 f6g5 c2a2 g5f6 a2c2 f6g5 h2h3 g5f4 e4g6 d5e7 g6d3 c7c6 c2f2 f4g3 b5c3 a8a7 c3e4 g3h2 g2g4 h2h1 f2f1 h1h2 f1f2 h2h1 f2f1
go depth 50

and observe PV pv h1h2 f1f2 h2h1

Anything else?

No response

Operating system

All

Stockfish version

master

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