Closed ghost closed 9 years ago
Daylen, please do a trim() on an FEN string. Furthermore, the program should not crash in any case. It should do a validation wrapped in a try-catch block. Only proceed to the engine if the validation succeeds.
Whitespace and newlines are now trimmed with commit https://github.com/daylen/stockfish-mac/commit/f46923988c9adccbba9cfe2e10579363ad3cd8af
Steps:
(with trailing whitespaces and newline character)
Just to recap, in previous issue, the app also crashed when fen started with whitespace character.
Please fix the fen issues as copy-pasting from external sources, it is very common that sometimes unnecessary whitespace/newline characters sneak through.