Fix clocks update + abort games from MyGames page
[vchess.git] / client / src / utils / notation.js
CommitLineData
e71161fb
BA
1// Take into account that the move may be a multi-move
2export function getFullNotation(move) {
3 if (Array.isArray(move)) {
4 let notation = "";
5 for (let i=0; i<move.length; i++)
6 notation += move[i].notation + ",";
7 // Remove last comma:
8 return notation.slice(0,-1);
9 }
10 // Simple (usual) case
11 return move.notation;
12}