-var ucimove_to_chessjs_move = function(move) {
- var source = move.substr(0, 2);
- var target = move.substr(2, 2);
- var promo = move.substr(4, 1);
-
- if (promo === '') {
- return { from: source, to: target };
- } else {
- return { from: source, to: target, promotion: promo };
- }
-}
-