Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Crafty perft command with pawn promotion

Author: Tim Foden

Date: 07:23:27 07/30/00

Go up one level in this thread


On July 30, 2000 at 10:03:04, Larry Griffiths wrote:

>I entered the following position in Crafty in the hopes of finding how many
>moves were generated when pawn promotion occurs.  I am thinking that Crafty will
>show the pawn promoting to all 4 piece types I get the following results.
>It looks like ply 1 is combining both the white and the black moves and I do not
>know what is happening at ply 2.
>
>
>White(1): display
>
>       +---+---+---+---+---+---+---+---+
>    8  | *K|   |   |   |   |   |   |   |
>       +---+---+---+---+---+---+---+---+
>    7  |   |   |   |   |   |   |   | P |
>       +---+---+---+---+---+---+---+---+
>    6  |   |   |   |   |   |   |   |   |
>       +---+---+---+---+---+---+---+---+
>    5  |   |   |   |   |   |   |   |   |
>       +---+---+---+---+---+---+---+---+
>    4  |   |   |   |   |   |   |   |   |
>       +---+---+---+---+---+---+---+---+
>    3  |   |   |   |   |   |   |   |   |
>       +---+---+---+---+---+---+---+---+
>    2  |   |   |   |   |   |   |   |   |
>       +---+---+---+---+---+---+---+---+
>    1  |   |   |   |   |   |   |   | K |
>       +---+---+---+---+---+---+---+---+
>         a   b   c   d   e   f   g   h
>
>White(1): perft 1
>total moves=7  time=0.00
>White(1): perft 2
>total moves=19  time=0.00
>White(1):

Sorry... hit enter too early on previous post

White's moves and black's replies:
  Kg1   ... Ka7 Kb7 Kb8
  Kg2   ... Ka7 Kb7 Kb8
  Kg3   ... Ka7 Kb7 Kb8
  h8=Q+ ... Ka7 Kb7
  h8=R+ ... Ka7 Kb7
  h8=B  ... Ka7 Kb7 Kb8
  h8=N  ... Ka7 Kb7 Kb8
--------------------------
7 moves ... 19 moves

perft 1 looks ok.
perft 2 looks to only include blacks moves??



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.