Scramble parser improvements
stanleydesu opened this issue · 1 comments
stanleydesu commented
parse_scramble
should:
- trim the provided scramble
- split by whitespace (use
split_whitespace
instead ofsplit(' ')
- return an empty Vec for a string with no moves, as it currently panics on this case
stanleydesu commented
scramble.trim().split_whitespace().map(convert_move).collect()
works well.