End conditions #40

Merged
thorsten-rausch merged 3 commits from end_conditions into main 2021-06-18 11:32:58 +00:00
2 changed files with 1 additions and 1 deletions
Showing only changes of commit 81782cdd25 - Show all commits

View File

@ -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
} }
} }

View File

@ -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