3d566c8a5d993689f7a4120e0d01a14f7b1a30cb
1 // Take into account that the move may be a multi-move
2 export function getFullNotation(move, type
) {
3 if (!type
) type
= "notation";
4 if (Array
.isArray(move)) {
5 if (move.length
<= 3) {
7 for (let i
=0; i
<move.length
; i
++)
8 notation
+= move[i
][type
] + ",";
10 return notation
.slice(0,-1);
12 // Four sub-moves or more:
15 // Simple (usual) case