marcusbuffett / command-line-chess

A python program to play chess against an AI in the terminal.
MIT License
496 stars 156 forks source link

Castling move is missing 0-0 #14

Closed glaand closed 2 years ago

glaand commented 6 years ago

image

ddugovic commented 6 years ago

Is this issue reproducible and if so, how?

glaand commented 6 years ago

@ddugovic Yes What side would you like to play as [wB]? w You will play as white

How deep should the AI look for moves? Warning : values above 3 will be very slow. [n]? 1 a b c d e f g h

8 R N B Q K B N R 8 7 p p p p p p p p 7 6 x x x x x x x x 6 5 x x x x x x x x 5 4 x x x x x x x x 4 3 x x x x x x x x 3 2 p p p p p p p p 2 1 R N B Q K B N R 1

a b c d e f g h

It's your move. Type '?' for options. ? e4

Making move : e4 a b c d e f g h

8 R N B Q K B N R 8 7 p p p p p p p p 7 6 x x x x x x x x 6 5 x x x x x x x x 5 4 x x x x p x x x 4 3 x x x x x x x x 3 2 p p p p x p p p 2 1 R N B Q K B N R 1

a b c d e f g h

AI thinking...

Making move : f6 a b c d e f g h

8 R N B Q K B N R 8 7 p p p p p x p p 7 6 x x x x x p x x 6 5 x x x x x x x x 5 4 x x x x p x x x 4 3 x x x x x x x x 3 2 p p p p x p p p 2 1 R N B Q K B N R 1

a b c d e f g h

It's your move. Type '?' for options. ? f3

Making move : f3 a b c d e f g h

8 R N B Q K B N R 8 7 p p p p p x p p 7 6 x x x x x p x x 6 5 x x x x x x x x 5 4 x x x x p x x x 4 3 x x x x x p x x 3 2 p p p p x x p p 2 1 R N B Q K B N R 1

a b c d e f g h

AI thinking...

Making move : a5 a b c d e f g h

8 R N B Q K B N R 8 7 x p p p p x p p 7 6 x x x x x p x x 6 5 p x x x x x x x 5 4 x x x x p x x x 4 3 x x x x x p x x 3 2 p p p p x x p p 2 1 R N B Q K B N R 1

a b c d e f g h

It's your move. Type '?' for options. ? Bd3

Making move : Bd3 a b c d e f g h

8 R N B Q K B N R 8 7 x p p p p x p p 7 6 x x x x x p x x 6 5 p x x x x x x x 5 4 x x x x p x x x 4 3 x x x B x p x x 3 2 p p p p x x p p 2 1 R N B Q K x N R 1

a b c d e f g h

AI thinking...

Making move : b5 a b c d e f g h

8 R N B Q K B N R 8 7 x x p p p x p p 7 6 x x x x x p x x 6 5 p p x x x x x x 5 4 x x x x p x x x 4 3 x x x B x p x x 3 2 p p p p x x p p 2 1 R N B Q K x N R 1

a b c d e f g h

It's your move. Type '?' for options. ? Nh3

Making move : Nh3 a b c d e f g h

8 R N B Q K B N R 8 7 x x p p p x p p 7 6 x x x x x p x x 6 5 p p x x x x x x 5 4 x x x x p x x x 4 3 x x x B x p x N 3 2 p p p p x x p p 2 1 R N B Q K x x R 1

a b c d e f g h

AI thinking...

Making move : d6 a b c d e f g h

8 R N B Q K B N R 8 7 x x p x p x p p 7 6 x x x p x p x x 6 5 p p x x x x x x 5 4 x x x x p x x x 4 3 x x x B x p x N 3 2 p p p p x x p p 2 1 R N B Q K x x R 1

a b c d e f g h

It's your move. Type '?' for options. ? Kg1 Couldn't parse input, enter a valid command or move. a b c d e f g h

8 R N B Q K B N R 8 7 x x p x p x p p 7 6 x x x p x p x x 6 5 p p x x x x x x 5 4 x x x x p x x x 4 3 x x x B x p x N 3 2 p p p p x x p p 2 1 R N B Q K x x R 1

a b c d e f g h

It's your move. Type '?' for options. ? 0-0 Couldn't parse input, enter a valid command or move. a b c d e f g h

8 R N B Q K B N R 8 7 x x p x p x p p 7 6 x x x p x p x x 6 5 p p x x x x x x 5 4 x x x x p x x x 4 3 x x x B x p x N 3 2 p p p p x x p p 2 1 R N B Q K x x R 1

a b c d e f g h

glaand commented 6 years ago

The official notation of castling is 0-0 (For King side) and 0-0-0 (For Queen side) https://en.wikipedia.org/wiki/Castling

ddugovic commented 6 years ago

Ah, so it is! (PGN uses O-O and O-O-O instead.)

OverFitted commented 5 years ago

Still doesn't work

ClasherKasten commented 2 years ago

Closed for the following reasons:

If anyone still has problems with this issue, please leave a comment so the community can discuss about it.