fairy-stockfish / Fairy-Stockfish

chess variant engine supporting Xiangqi, Shogi, Janggi, Makruk, S-Chess, Crazyhouse, Bughouse, and many more
https://fairy-stockfish.github.io/
GNU General Public License v3.0
617 stars 193 forks source link

Some Xiangqi perpetual chase games #570

Closed nguyenpham closed 1 year ago

nguyenpham commented 1 year ago

Of the three Xiangqi engines I have been testing (two others are Pikafish and CCStockfish) only Fairy-Stockfish lost some games because of perpetual chases.

Game 1

[Event "MoonRiver game"]
[Site "*"]
[Date "2023.01.10"]
[Round "*"]
[White "CCStockfish 1 thread 16MB"]
[Black "Fairy-Stockfish 1 thread 16MB"]
[Result "1-0"]
[TimeControl "40/300+1"]
[Time "23:27:38"]
[Termination "perpetual chase"]
[Variant "xiangqi"]
[ECO "E43"]
[Opening "Pawn with Right Horse Left/Right Central Elephant Variation vs. Pawn with Right Horse Variation"]

1.g3g4 b9c7 2.h0g2 c6c5
3.c0e2 c9e7 {E43: Pawn with Right Horse Left/Right Central Elephant Variation vs. Pawn with Right Horse Variation}  4.i0i1 h9i7
5.i1c1 b7b9 6.c3c4 c5c4
7.c1c4 b9c9 8.c4b4 i9i8
9.a0a1 i8f8 10.i3i4 f8f5
11.a1d1 d9e8 12.d1d6 i6i5
13.i4i5 f5i5 14.b4b3 i5i3
15.g2f4 i3f3 16.f4d5 c7d5
17.d6d5 c9d9 18.d0e1 e8d7
19.d5b5 a9c9 20.b0c2 h7h3
21.b2b0 c9c6 22.b0d0 c6d6
23.b5b9 f3g3 24.h2f2 h3h6
25.b9d9 e9d9 26.b3b9 d9d8
27.e1d2 d6c6 28.c2b4 c6c3
29.b9e9 g3e3 30.b4d5 c3a3
31.d5c7 a3b3 32.e9d9 d8e8
33.d9d7 e8f8 34.d7e7 f9e8
35.f0e1 b3b7 36.c7d9 e8d9
37.e7b7 h6h0 38.f2f0 h0f0
39.d0f0 f8e8 40.b7g7 e3d3
41.g7g9 d3d7 42.f0f3 d7d3
43.f3f7 e6e5 44.g9i9 i7h5
45.i9i5 d3f3 46.f7c7 f3h3
47.c7h7 h5g7 48.i5e5 e8f8
49.h7i7 h3i3 50.i7h7 i3h3
51.h7i7 h3i3 52.i7h7 i3h3
1-0

Game 2

[Event "MoonRiver game"]
[Site "*"]
[Date "2023.01.10"]
[Round "*"]
[White "Fairy-Stockfish 3 threads 64MB"]
[Black "Pikafish 3 threads 64MB"]
[Result "0-1"]
[TimeControl "40/300+1"]
[Time "23:30:30"]
[Termination "perpetual chase"]
[Variant "xiangqi"]
[ECO "E40"]
[Opening "Pawn vs. Pawn"]

1.c3c4 g6g5 2.h2e2 {E40: Pawn vs. Pawn}  h9g7
3.h0g2 i9h9 4.i0h0 h7h3
5.b0c2 c9e7 6.b2b9 a9b9
7.a0b0 b7b3 8.c2d4 b3b2
9.d4e6 b2g2 10.b0b9 h3e3
11.d0e1 h9h0 12.e6g7 f9e8
13.b9b3 e3e5 14.b3f3 h0g0
15.e0d0 g0h0 16.f3f5 e5e3
17.f5e5 h0h7 18.e5e3 g2g0
19.d0d1 h7g7 20.e3d3 e9f9
21.d3f3 e8f7 22.f3d3 g7g6
23.d3d9 f9f8 24.d9d4 g6e6
25.e2f2 f8e8 26.g3g4 g5g4
27.d4g4 g0h0 28.g4f4 e6e3
29.f4f7 e3d3 30.f2d2 d3a3
31.d2e2 e7g5 32.f7h7 h0g0
33.h7h5 a3d3 34.e1d2 d3c3
35.f0e1 c3c1 36.d1d0 c1c0
37.d0d1 g9i7 38.h5h8 e8e9
39.h8h9 e9e8 40.h9h8 e8e9
41.h8h9 e9e8 42.h9h6 c0c4
43.h6i6 g0g1 44.e1f0 c4c1
45.d1d0 c1c0 46.d0d1 c0e0
47.i6e6 e8f8 48.e6c6 e0e2
49.c6a6 g1i1 50.i3i4 e2i2
51.d1e1 g5e7 52.a6f6 f8e8
53.e1f1 i1i4 54.f6f8 e8e9
55.f8f9 e9e8 56.f9f8 e8e9
57.f8f9 e9e8 58.f0e1 i2i1
59.f1f0 i1i0 60.f0f1 i4a4
61.f9f8 e8e9 62.f8f9 e9e8
63.f9f8 e8e9 64.f8f4 a4a1
65.e1f2 i0i1 66.f1f0 i1i2
67.f0f1 i7g5 68.f4a4 i2i1
69.f1f0 i1i0 70.f0f1 a1b1
71.a4b4 b1a1 72.b4a4 a1b1
73.a4b4 b1a1 74.b4a4 0-1

Game 3

[Event "MoonRiver game"]
[Site "*"]
[Date "2023.01.10"]
[Round "*"]
[White "Pikafish 1 thread 16MB"]
[Black "Fairy-Stockfish 1 thread 16MB"]
[Result "1-0"]
[TimeControl "40/300+1"]
[Time "23:32:09"]
[Termination "perpetual chase"]
[Variant "xiangqi"]
[ECO "A37"]
[Opening "Elephant with Left Proper Horse vs. 7th Pawn Advancement"]

1.g0e2 g6g5 2.b0c2 h9g7 {A37: Elephant with Left Proper Horse vs. 7th Pawn Advancement} 
3.a0a1 g9e7 4.c3c4 b9a7
5.a1g1 a9a8 6.g3g4 g5g4
7.g1g4 h7h9 8.c2d4 h9g9
9.g4h4 b7b4 10.h4h7 b4d4
11.h7g7 i9h9 12.i0i1 d4d7
13.g7g6 f9e8 14.h0f1 a8b8
15.g6e6 b8b5 16.f1g3 d7b7
17.c4c5 c6c5 18.b2c2 c5c4
19.g3e4 b7b6 20.i1d1 b6c6
21.h2f2 c4d4 22.d1d4 c6c0
23.e2c0 g9g0 24.f0e1 g0i0
25.e6f6 h9h0 26.f2f0 h0h4
27.f0f2 b5b3 28.e0f0 h4h0
29.f0f1 h0h1 30.f1f0 h1h0
31.f0f1 h0h4 32.c2c4 h4h1
33.f1f0 h1h0 34.f0f1 h0h1
35.f1f0 h1h0 36.f0f1 h0h9
37.f2c2 b3c3 38.c2d2 c3e3
39.d2c2 e3c3 40.c2e2 c3e3
41.e2c2 e3c3 42.c2e2 c3e3
43.e2c2 1-0
ianfab commented 1 year ago

Thanks. The chasing rule implementation is known to be incomplete, see #468. Feel free to add examples in that thread for later reference.