bhlangonijr / chesslib

chess library for legal move generation, FEN/PGN parsing and more
Apache License 2.0
225 stars 78 forks source link

Fix MoveList.getFen don't see the last move #3

Closed illuminatus007 closed 6 years ago

illuminatus007 commented 6 years ago
  1. MoveList.getFen gives wrong answer if halfmoves from starting positions > 1 (method returned the same with " e4 " and " e4 e5 " moves) So, test class updated too.

  2. FEN notation in last field have counter of full moves, which incremented after black move not after each halfmove. How about changing it?