PTN Utility
A library used to parse PTN and generate OpenTak movesets for use in Tak libraries.
Usage
; const ptn = Ptn; // Ptn {// ptn: '3c3>111',// pieceCount: '3',// specialPiece: undefined,// column: 'c',// row: '3',// movement: '>111',// direction: '>',// distribution: '111',// wallSmash: undefined,// pieceType: 'piece',// x: 2,// y: 2// } ptn; // [{// action: 'pop', count: 3, x: 2, y: 2// }, {// action: 'push', count: 1, x: 3, y: 2// }, {// action: 'push', count: 1, x: 4, y: 2// }, {// action: 'push', count: 1, x: 5, y: 2// }]