alexobviously / squares

A flexible chessboard widget for Flutter
https://pub.dev/packages/squares
Other
37 stars 15 forks source link

black player bug #23

Open ahmedramadan-20 opened 8 months ago

ahmedramadan-20 commented 8 months ago

https://github.com/alexobviously/squares/assets/28817140/17d76d0b-b3e7-465d-bc31-4f3d5c6b516d

when I change the player to black and try to play as black this happens why ? I thought i did something wrong in my code but when returned to the basic cod it still happening

Mercutio1243 commented 8 months ago

Isn't it white's move? These look like the pre move actions

ahmedramadan-20 commented 8 months ago

Isn't it white's move? These look like the pre move actions

no it's player move which i changed to this and started the app int player = Squares.black;

Mercutio1243 commented 8 months ago

This is the orientation of the board, no? Try to load a fen, where it is black's turn?

game = bishop.Game(variant: bishop.Variant.standard()); to game = bishop.Game(variant: bishop.Variant.standard(), fen: "XXX");