add: morpion: backend disconnect
This commit is contained in:
@ -36,18 +36,19 @@ class TicTacToe
|
||||
|
||||
async onReceive(messageData)
|
||||
{
|
||||
console.log(messageData)
|
||||
switch (messageData.detail)
|
||||
{
|
||||
case 'x':
|
||||
case 'o':
|
||||
this.sign = messageData.detail;
|
||||
this.turn = messageData.detail == "x";
|
||||
if (this.turn && this.game.started == false)
|
||||
this.setOutline(4, false);
|
||||
break;
|
||||
|
||||
case 'game_start':
|
||||
this.game.started = true;
|
||||
if (this.turn)
|
||||
this.setOutline(4, false);
|
||||
break;
|
||||
|
||||
case 'game_move':
|
||||
|
Reference in New Issue
Block a user