projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some more cleaning + fixes
[vchess.git]
/
client
/
src
/
base_rules.js
diff --git
a/client/src/base_rules.js
b/client/src/base_rules.js
index
056f477
..
42d9bdc
100644
(file)
--- 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";
import { ArrayFun } from "@/utils/array";
import { randInt, shuffle } from "@/utils/alea";
+// class "PiPo": Piece + Position
export const PiPo = class PiPo {
export const PiPo = class PiPo {
- //Piece+Position
// o: {piece[p], color[c], posX[x], posY[y]}
constructor(o) {
this.p = o.p;
// 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
export const Move = class Move {
// o: {appear, vanish, [start,] [end,]}
// appear,vanish = arrays of PiPo