UNPKG

@rbxts/tic-tac-toe

Version:

Modular tic-tac-toe without dependencies, because why not.

30 lines (29 loc) 767 B
import { TicTacToePlayer } from "./player/TicTacToePlayer"; /** * The representation of a TicTacToe move. */ export declare class TicTacToeMove { private row; private col; private player; /** * Constructs a new TicTacToeMove with the given row, column and player. * * @param row The row of the move. * @param col The column of the move. * @param player The player of the move. */ constructor(row: number, col: number, player: TicTacToePlayer); /** * Returns the row of the move. */ getRow(): number; /** * Returns the column of the move. */ getCol(): number; /** * Returns the player of the move. */ getPlayer(): TicTacToePlayer; }