SteveBarnegren / SwiftChess

Chess engine and AI written in Swift
MIT License
145 stars 35 forks source link

Some time moves not working. #15

Closed anil004-dev closed 4 years ago

anil004-dev commented 5 years ago

Moving g6 to e7 not working with Piece.PieceType.knight

Please help me

piece :Piece(type: SwiftChess.Piece.PieceType.knight, color: SwiftChess.Color.black, tag: Optional(0), hasMoved: false, canBeTakenByEnPassant: false, location: SwiftChess.BoardLocation(index: 0)), location: BoardLocation(index: 52) Piece is unable to move to this location Simulator Screen Shot - iPhone 11 - 2019-10-17 at 12 40 07

SteveBarnegren commented 4 years ago

Hi @anil004-dev, sorry for the delay in getting back to you!

I'm not sure exactly what the issue is here unfortunately. It's difficult for me to fix these sorts of issues from a screenshot because it would take be some time to try and recreate the scenario. If you still want me to look in to it then if you're able to create a failing unit test then I'll be able to fix it for you.

Thanks