jamesqo / chess-bot

UCI-compliant chess engine written in C#
MIT License
1 stars 0 forks source link

[Bug] AlphaBeta and other searchers are giving different results #17

Closed jamesqo closed 4 years ago

jamesqo commented 4 years ago

ac93435c48a6e038fd3c1623d94d48c114924c31

Welcome! This is a simple chess bot written in C#.

Pick your color [b, w (default)]:
Pick ai strategy [alphabeta (default), mtdf, ids]:
Enter start FEN [optional]:

Playing as: White

[Turn 1]

r n b q k b n r
p p p p p p p p
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
P P P P P P P P
R N B Q K B N R

It's White's turn.
> e4
White played: e2e4

r n b q k b n r
p p p p p p p p
. . . . . . . .
. . . . . . . .
. . . . P . . .
. . . . . . . .
P P P P . P P P
R N B Q K B N R

It's Black's turn.
Black played: d7d5

[Turn 2]

r n b q k b n r
p p p . p p p p
. . . . . . . .
. . . p . . . .
. . . . P . . .
. . . . . . . .
P P P P . P P P
R N B Q K B N R

It's White's turn.
> Nc3
White played: b1c3

r n b q k b n r
p p p . p p p p
. . . . . . . .
. . . p . . . .
. . . . P . . .
. . N . . . . .
P P P P . P P P
R . B Q K B N R

It's Black's turn.
Black played: d5e4

[Turn 3]

r n b q k b n r
p p p . p p p p
. . . . . . . .
. . . . . . . .
. . . . p . . .
. . N . . . . .
P P P P . P P P
R . B Q K B N R

It's White's turn.
>
Welcome! This is a simple chess bot written in C#.

Pick your color [b, w (default)]:
Pick ai strategy [alphabeta (default), mtdf, ids]: mtdf
Enter start FEN [optional]:

Playing as: White

[Turn 1]

r n b q k b n r
p p p p p p p p
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
P P P P P P P P
R N B Q K B N R

It's White's turn.
> e4
White played: e2e4

r n b q k b n r
p p p p p p p p
. . . . . . . .
. . . . . . . .
. . . . P . . .
. . . . . . . .
P P P P . P P P
R N B Q K B N R

It's Black's turn.
Black played: d7d5

[Turn 2]

r n b q k b n r
p p p . p p p p
. . . . . . . .
. . . p . . . .
. . . . P . . .
. . . . . . . .
P P P P . P P P
R N B Q K B N R

It's White's turn.
> Nc3
White played: b1c3

r n b q k b n r
p p p . p p p p
. . . . . . . .
. . . p . . . .
. . . . P . . .
. . N . . . . .
P P P P . P P P
R . B Q K B N R

It's Black's turn.
Black played: d5d4

[Turn 3]

r n b q k b n r
p p p . p p p p
. . . . . . . .
. . . . . . . .
. . . p P . . .
. . N . . . . .
P P P P . P P P
R . B Q K B N R

It's White's turn.
>

This could mean MTD-f isn't implemented correctly / isn't returning the actual minimax value for the nodes.