UNPKG

@natewilcox/tic-tac-toe-shared

Version:

A shared library for a multiplayer Tic Tac Toe game, providing common components and utilities used by both the client-side and server-side applications.

13 lines (12 loc) 350 B
import type { ArraySchema, Schema } from "@colyseus/schema"; import { IPlayerState } from "./IPlayerState"; export interface IRoomState extends Schema { isCPU: boolean; currentTurn: string; winner: string; boardState: ArraySchema<string>; ready: boolean; playerX: IPlayerState; playerO: IPlayerState; index: number; }