This pull request adds two useful methods that can be used to output a MoveList with move numbers: toSanWithMoveNumbers() and toFanWithMoveNumbers(). An example of the output of the former would be "1. e4 e5 2. Nf3 Bc5 " and an example of the output of the latter would be "1. ♙e4 ♟e5 2. ♘f3 ♝c5 ".
Both methods have javadocs and unit tests, and I even refactored the repetitive parts so that it's pretty clean. I also took a shot at improving the javadocs of some other, related methods a bit.
This pull request adds two useful methods that can be used to output a
MoveList
with move numbers:toSanWithMoveNumbers()
andtoFanWithMoveNumbers()
. An example of the output of the former would be"1. e4 e5 2. Nf3 Bc5 "
and an example of the output of the latter would be"1. ♙e4 ♟e5 2. ♘f3 ♝c5 "
.Both methods have javadocs and unit tests, and I even refactored the repetitive parts so that it's pretty clean. I also took a shot at improving the javadocs of some other, related methods a bit.