X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Futils%2Fnotation.js;h=3d566c8a5d993689f7a4120e0d01a14f7b1a30cb;hb=737a5dafb39740ebe304b8d0a82df85070def571;hp=464b5eee4d60a4ffd66de93eb42e9a382d108f1a;hpb=e71161fbfffe53b0f4b174e0467cdd98cc70b7b0;p=vchess.git diff --git a/client/src/utils/notation.js b/client/src/utils/notation.js index 464b5eee..3d566c8a 100644 --- a/client/src/utils/notation.js +++ b/client/src/utils/notation.js @@ -1,12 +1,17 @@ // Take into account that the move may be a multi-move -export function getFullNotation(move) { +export function getFullNotation(move, type) { + if (!type) type = "notation"; if (Array.isArray(move)) { - let notation = ""; - for (let i=0; i