projects
/
xogo.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
f0108cf13cf6eb17255d7c96164071788704c045
[xogo.git]
/
utils
/
PiPo.js
1
// class "PiPo": Piece + Position
2
export default class
PiPo
{
3
4
// o: {piece[p], color[c], posX[x], posY[y]}
5
constructor
(
o
) {
6
this
.
p
=
o
.
p
;
7
this
.
c
=
o
.
c
;
8
this
.
x
=
o
.
x
;
9
this
.
y
=
o
.
y
;
10
}
11
12
};