SebLague / Chess-Challenge

Create your own tiny chess bot!
https://www.youtube.com/watch?v=Ne40a5LkK6A
MIT License
1.77k stars 1.06k forks source link

GameMoveHistory bug #446

Closed jebissey closed 1 year ago

jebissey commented 1 year ago
  1. c1g5 isn't possible 2023-08-12_11h37_19
SebLague commented 1 year ago

Test games start from a variety of different positions, so I assume this was a position where the c1 bishop was free to move to g5. The board class has a startFEN property you can look at to see the starting position.

jebissey commented 1 year ago

Thanks for your respond.

Because my bot sometimes loses all its pieces quickly, I'd like to replay the game manually to try to understand why. According to the api, I thought all the moves were in GameMoveHistory. 2023-08-12_17h36_48 2023-08-12_17h49_54

It is possible to have missing first moves ?

If it is not I would have to store them by myself.

jebissey commented 1 year ago

During the MyBot vs EvilBot matches I wanted to record all the movements, but it's definitely not easy. Where are the missing moves? In previous games?

2023-08-14_11h41_25
SebLague commented 1 year ago

During a match, the games are started from various opening/middlegame positions (which you can find in resources/Fens.txt file) The starting moves don't exist in that case, the game is just begun from a custom fen string.

jebissey commented 1 year ago

ok. So I added some code to replay the game manually 2023-08-14_13h59_28 2023-08-14_13h58_55