Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: 0x88 findings

Author: Roman Hartmann

Date: 10:50:47 02/22/06

Go up one level in this thread


On February 22, 2006 at 12:33:23, Reinhard Scharnagl wrote:

>On February 22, 2006 at 07:46:38, Roman Hartmann wrote:
>
>>Reinhards impressive perft stats are one of the reasons I wasted so much time
>>with my movegenerator.
>>I'm using also a legal move generator in my engine and if I would like to count
>>the mates and stalemates I would have to check if the king for the side to move
>>is in check everytime the move generator gives back a 0, meaning that there are
>>no legal moves left for the side to move. That wouldn't take too much time
>>though.
>
>Hi Roman,
>
>I would like to see that difference elsewhere. Integrating the mates alone has
>increased SMIRF's timing a lot (I remember something about 25%). And that, when
>also expensive check information already had been included.
>
>Reinhard.

Hi Reinhard,
seems I was a bit quick with my conclusion that it would be easy to obtain the
mate/stalemate information in perft for me. This is only true as long as I don't
count the mates/stalemates at the horizon. Counting the mates/stalemate easily
works only to depth-1 without spending any time to make/unmake the moves at the
leaves.

The mate/stalemate infos are therefore only valid for depth-1. At least I get
the same numbers like SMIRF.

FEN: rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
roce: perft 5

Perft (5): 4865609 nodes, Time: 0.541 s
 Mates: 8, Stalemates: 0

roce: perft 6

Perft (6): 119060324 nodes, Time: 15.362 s
 Mates: 347, Stalemates: 0

roce: perft 7

Perft (7): 3195901860 nodes, Time: 384.273 s
 Mates: 10828, Stalemates: 0


FEN: r3k2r/p1ppqpb1/bn2pnp1/3PN3/1p2P3/2N2Q1p/PPPBBPPP/R3K2R w KQkq - 0 25
Perft (1): 48 nodes, Time: 0.000 s
roce: perft 2

Perft (2): 2039 nodes, Time: 0.000 s
 Mates: 0, Stalemates: 0

roce: perft 3

Perft (3): 97862 nodes, Time: 0.010 s
 Mates: 0, Stalemates: 0

roce: perft 4

Perft (4): 4085603 nodes, Time: 0.360 s
 Mates: 1, Stalemates: 0

roce: perft 5

Perft (5): 193690690 nodes, Time: 16.404 s
 Mates: 43, Stalemates: 0

roce: perft 6

Perft (6): 8031647685 nodes, Time: 746.063 s
 Mates: 30171, Stalemates: 0

greetings
Roman



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.