(tic-tac-toe): Laid the foundations for tic tac toe/database interactions
This commit is contained in:
parent
edeee0093b
commit
b873ec390f
1 changed files with 2 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ import * as auth from '@shared/auth';
|
||||||
import * as swagger from '@shared/swagger';
|
import * as swagger from '@shared/swagger';
|
||||||
import * as utils from '@shared/utils';
|
import * as utils from '@shared/utils';
|
||||||
import { Server } from 'socket.io';
|
import { Server } from 'socket.io';
|
||||||
import type { TicTacToeData } from '@shared/database/mixin/tictactoe';
|
import type { TicTacToeImpl } from '@shared/database/mixin/tictactoe';
|
||||||
|
|
||||||
declare const __SERVICE_NAME: string;
|
declare const __SERVICE_NAME: string;
|
||||||
|
|
||||||
|
|
@ -83,6 +83,7 @@ async function onReady(fastify: FastifyInstance, game: TTC) {
|
||||||
turn: game.currentPlayer,
|
turn: game.currentPlayer,
|
||||||
lastResult: result,
|
lastResult: result,
|
||||||
});
|
});
|
||||||
|
// setGameOutcome();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue