Perft for various positions

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

brtzsnr
Posts: 433
Joined: Fri Jan 16, 2015 4:02 pm

Perft for various positions

Post by brtzsnr »

Hello,

Can somebody confirm the following perft results?
I want to update https://chessprogramming.wikispaces.com/Perft+Results
I generated the results with the perft tool included with my engine https://bitbucket.org/brtzsnr/zurichess/src

Code: Select all

$ go run perft.go --fen startpos --max 7
Searching FEN "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"
depth        nodes   captures enpassant castles eval   KNps elapsed
-----+------------+----------+---------+-------+----+------+-------
    1           20          0         0       0 good     97 206.016µs
    2          400          0         0       0 good     52 7.737049ms
    3         8902         34         0       0 good     36 248.924641ms
    4       197281       1576         0       0 good   3582 55.072013ms
    5      4865609      82719       258       0 good   7510 647.88362ms
    6    119060324    2812008      5248       0 good  15927 7.47543806s
    7   3195901860  108329926    319617  883453       28930 1m50.468484425s

Code: Select all

$ go run perft.go --fen duplain --max 8
Searching FEN "8/2p5/3p4/KP5r/1R3p1k/8/4P1P1/8 w - - 0 1"
depth        nodes   captures enpassant castles eval   KNps elapsed
-----+------------+----------+---------+-------+----+------+-------
    1           14          1         0       0 good     71 198.364µs
    2          191         14         0       0 good     78 2.464426ms
    3         2812        209         2       0 good      6 505.04306ms
    4        43238       3348       123       0 good    247 174.902629ms
    5       674624      52051      1165       0 good   8775 76.880306ms
    6     11030083     940350     33325       0 good  18034 611.64134ms
    7    178633661   14519036    294874       0 good  51243 3.486042159s
    8   3009794393  267586558   8009239       0      117732 25.564858293s

Code: Select all

$ go run perft.go --fen kiwipete --max 6
Searching FEN "r3k2r/p1ppqpb1/bn2pnp1/3PN3/1p2P3/2N2Q1p/PPPBBPPP/R3K2R w KQkq - 0 1"
depth        nodes   captures enpassant castles eval   KNps elapsed
-----+------------+----------+---------+-------+----+------+-------
    1           48          8         0       2 good    180 266.484µs
    2         2039        351         1      91 good    199 10.25142ms
    3        97862      17102        45    3162 good    258 379.823472ms
    4      4085603     757163      1929  128013 good   7300 559.641311ms
    5    193690690   35043416     73365 4993637 good  13773 14.063201977s
    6   8031647685 1558445089   3577504 184513607       23125 5m47.31354722s

Code: Select all

$ go run perft.go --fen "rnbqkb1r/pp1p1ppp/2p5/4P3/2B5/8/PPP1NnPP/RNBQK2R w KQkq - 0 6" --max 6
Searching FEN "rnbqkb1r/pp1p1ppp/2p5/4P3/2B5/8/PPP1NnPP/RNBQK2R w KQkq - 0 6"
depth        nodes   captures enpassant castles eval   KNps elapsed
-----+------------+----------+---------+-------+----+------+-------
    1           42          3         0       1         309 135.899µs
    2         1352         95         0       0         258 5.246433ms
    3        53392       4381        75     969         905 59.015492ms
    4      1761505     147485         0    6768        9843 178.960198ms
    5     70202861    6440150     80978 1006722       16318 4.302258231s
    6   2362704901  228431701     10013 13431137       27041 1m27.374125833s

Code: Select all

$ go run perft.go --fen "r4rk1/1pp1qppp/p1np1n2/2b1p1B1/2B1P1b1/P1NP1N2/1PP1QPPP/R4RK1 w - - 0 10" --max 5                    
Searching FEN "r4rk1/1pp1qppp/p1np1n2/2b1p1B1/2B1P1b1/P1NP1N2/1PP1QPPP/R4RK1 w - - 0 10"
depth        nodes   captures enpassant castles eval   KNps elapsed
-----+------------+----------+---------+-------+----+------+-------
    1           46          4         0       0         228 201.422µs
    2         2079        203         0       0         253 8.232969ms
    3        89890       9470         0       0         152 591.883367ms
    4      3894594     440388         0       0        8276 470.599144ms
    5    164075551   19528068       122       0       13881 11.820511399s
Rein Halbersma
Posts: 741
Joined: Tue May 22, 2007 11:13 am

Re: Perft for various positions

Post by Rein Halbersma »

Stockfish has a perft() routine, you can easily write a small program that takes a FEN and runs that routine.
User avatar
cdani
Posts: 2204
Joined: Sat Jan 18, 2014 10:24 am
Location: Andorra

Re: Perft for various positions

Post by cdani »

The nodes column is confirmed for every position with Andscacs.
User avatar
SMIRF
Posts: 91
Joined: Wed Mar 26, 2014 4:29 pm
Location: Buettelborn/Hessen/Germany

Re: Perft for various positions

Post by SMIRF »

some results might be compared to: http://www.10x8.net/chess/PerfT.html