Evert wrote:Does anyone have perft values for Seirawan chess?
I added support for Seirawan to my Spartan engine Leonidas, and it seems to be working properly but I'd like some independent verification.
For reference, my perft 6 from the starting position is
Code: Select all
1 28
2 784
3 24830
4 782599
5 27639803
6 967583328
I got the same result from 1 to 5 but not 6.
Here is my perft 6.
Code: Select all
# Sigla v2015.1.2.8
# Can only play seirawan chess variant
new
# rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR[HEhe] w KQkq -
# White pieces on-board: wq 1, we 0, wh 0, wr 2, wb 2, wn 2, wp 8
# Black pieces on-board: bq 1, be 0, bh 0, br 2, bb 2, bn 2, bp 8
# Pieces on-hand: we 1, wh 1, be 1, bh 1
# White virgin squares: e1, h1, g1, f1, d1, c1, b1, a1,
# Black virgin squares: e8, h8, g8, f8, d8, c8, b8, a8,
perft 6
8 r n b q k b n r
7 o o o o o o o o
6 . . . . . . . .
5 . . . . . . . .
4 . . . . . . . .
3 . . . . . . . .
2 P P P P P P P P
1 R N B Q K B N R
a b c d e f g h
a2a3 - 26244518
a2a4 - 35704520
b2b3 - 35090343
b2b4 - 34901155
c2c3 - 36086291
c2c4 - 41422507
d2d3 - 66325768
d2d4 - 75854980
e2e3 - 87054576
e2e4 - 87789463
f2f3 - 25803648
f2f4 - 30843423
g2g3 - 35404600
g2g4 - 34510109
h2h3 - 26240447
h2h4 - 35903703
b1a3 - 24472283
b1a3h - 17358676
b1a3e - 17258912
b1c3 - 27639135
b1c3h - 19688617
b1c3e - 19798785
g1f3 - 27516771
g1f3h - 19652549
g1f3e - 19749769
g1h3 - 24519638
g1h3h - 17450752
g1h3e - 17298971
Perft 6 Summary
Counts: 967584909
Time: 234.57 sec
Just implemented castle move with gating at rook file. I have this position created to see the engine generate such gating type move.
Code: Select all
# Sigla v2015.1.2.8
# Can only play seirawan chess variant
setboard r3k2r/p1qnbppp/2pppn2/1pP2bB1/Q2P4/2N1PN2/PP2BPPP/R3K2R[HEhe] w KQkq b6 0 10
# White pieces on-board: wq 1, we 0, wh 0, wr 2, wb 2, wn 2, wp 8
# Black pieces on-board: bq 1, be 0, bh 0, br 2, bb 2, bn 2, bp 8
# Pieces on-hand: we 1, wh 1, be 1, bh 1
# White virgin squares: e1, h1, a1,
# Black virgin squares: e8, h8, a8,
perft 5
8 r . . . k . . r
7 o . q n b o o o
6 . . o o o n . .
5 . o P . . b B .
4 Q . . P . . . .
3 . . N . P N . .
2 P P . . B P P P
1 R . . . K . . R
a b c d e f g h
c5d6 - 17378776
d4d5 - 19744932
e3e4 - 16305896
a2a3 - 17015496
b2b3 - 14523738
b2b4 - 14119586
g2g3 - 15838974
g2g4 - 15386300
h2h3 - 17641096
h2h4 - 17743420
c5b6 - 17176702
c3b5 - 14505851
c3d5 - 16536512
c3e4 - 13979781
c3b1 - 12493052
c3d1 - 9984941
f3e5 - 20637847
f3h4 - 17297416
f3d2 - 18471708
f3g1 - 15073699
g5f6 - 16425738
g5h6 - 16102912
g5f4 - 17889832
g5h4 - 15864800
e2d3 - 18327786
e2c4 - 19041458
e2b5 - 17050362
e2d1 - 12366052
e2f1 - 16524584
a1b1 - 12101125
a1b1h - 10253559
a1b1e - 10222847
a1c1 - 12900344
a1c1h - 10979305
a1c1e - 11335141
a1d1 - 11174414
a1d1h - 9676085
a1d1e - 10387318
h1g1 - 12592949
h1g1h - 10056927
h1g1e - 10020584
h1f1 - 11531024
h1f1h - 9370962
h1f1e - 9713448
a4a5 - 15268028
a4a6 - 13624156
a4a7 - 16730301
a4b5 - 16213895
a4b4 - 14310164
a4c4 - 15116667
a4a3 - 14135652
a4b3 - 15520265
a4c2 - 15774688
a4d1 - 15761496
e1d2 - 17183037
e1d2h - 9138384
e1d2e - 10826168
e1d1 - 10160158
e1d1h - 8340927
e1d1e - 8564856
e1f1 - 10500263
e1f1h - 8746702
e1f1e - 9256172
e1g1 - 10002477
e1g1h - 7813014
e1g1e - 8276048
h1e1h - 8812150
h1e1e - 8786622
e1c1 - 9352465
e1c1h - 7688786
e1c1e - 7902389
a1e1h - 9157471
a1e1e - 9485936
Perft 5 Summary
Counts: 966214616
Time: 248.16 sec