End conditions #40
@ -7,7 +7,6 @@ class Player {
|
||||
|
||||
move_by(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) {
|
||||
case Game.STATUS.IS_WON:
|
||||
//TODO show clients the winner
|
||||
//game[socket.room].winnerIndex
|
||||
break;
|
||||
case Game.STATUS.IS_DRAW:
|
||||
//TODO show clients that nobody wins
|
||||
|
Loading…
Reference in New Issue
Block a user