mrozilla / mrozilla.cz

A one-man digital studio
https://www.mrozilla.cz
MIT License
9 stars 2 forks source link

[Hexapawn] Player wins in a position they shouldn't #37

Open IAGOnGithub opened 1 year ago

IAGOnGithub commented 1 year ago

Affects: Hexapawn game

Key: y is a black pawn, X is a white pawn

In the following position, the player wins as if the position were drawn, even though the AI has three legal moves; a2. axb2, and c3.

     1 2 3

A    X
B      y X
C 

This does not happen in the mirrored position. The AI sees that it has valid moves and will play one as expected.

     1 2 3

A        X
B    X y
C 

Apologies if this is the wrong place to file an issue.