Add back in length < 100 check for each word.

This commit is contained in:
johndoknjas
2026-05-18 13:38:27 -07:00
committed by Thibault Duplessis
parent a000dbc1f9
commit b05705f315
+2 -1
View File
@@ -34,7 +34,8 @@ object String:
.filter(_.nonEmpty)
.map(word =>
if Set("O-O", "O-O-O").contains(word.filter(c => c.isLetter || c == '-')) || (
Set(8, 9).contains(word.split('/').filter(_.nonEmpty).length) &&
word.length < 100 &&
Set(8, 9).contains(word.split('/').filter(_.nonEmpty).length) &&
Fen.makeBoard(Crazyhouse, word).isDefined
)
then word.toLowerCase