add/remove comments
This commit is contained in:
parent
0e4fd19933
commit
81782cdd25
@ -7,7 +7,6 @@ class Player {
|
|||||||
|
|
||||||
move_by(amount) {
|
move_by(amount) {
|
||||||
this.position += amount;
|
this.position += amount;
|
||||||
//todo: move by 1 only on the last 3 fields
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -145,6 +145,7 @@ io.on('connection', socket => {
|
|||||||
switch (game[socket.room].currentStatus) {
|
switch (game[socket.room].currentStatus) {
|
||||||
case Game.STATUS.IS_WON:
|
case Game.STATUS.IS_WON:
|
||||||
//TODO show clients the winner
|
//TODO show clients the winner
|
||||||
|
//game[socket.room].winnerIndex
|
||||||
break;
|
break;
|
||||||
case Game.STATUS.IS_DRAW:
|
case Game.STATUS.IS_DRAW:
|
||||||
//TODO show clients that nobody wins
|
//TODO show clients that nobody wins
|
||||||
|
Loading…
Reference in New Issue
Block a user