X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fbase_rules.js;h=42d9bdc8067ab56bd596af84bf73e65496c764b9;hp=056f4774a9c3b56047e7b63ca4f49a6f767f0586;hb=910d631b73cad5ffef1b4461157b704e7e7057d8;hpb=6808d7a16ec1e761c6a2dffec2281c96953e4d89 diff --git a/client/src/base_rules.js b/client/src/base_rules.js index 056f4774..42d9bdc8 100644 --- a/client/src/base_rules.js +++ b/client/src/base_rules.js @@ -4,8 +4,8 @@ import { ArrayFun } from "@/utils/array"; import { randInt, shuffle } from "@/utils/alea"; +// class "PiPo": Piece + Position export const PiPo = class PiPo { - //Piece+Position // o: {piece[p], color[c], posX[x], posY[y]} constructor(o) { this.p = o.p; @@ -15,7 +15,6 @@ export const PiPo = class PiPo { } }; -// TODO: for animation, moves should contains "moving" and "fading" maybe... export const Move = class Move { // o: {appear, vanish, [start,] [end,]} // appear,vanish = arrays of PiPo