diff --git a/lib/ttt.d.ts b/lib/ttt.d.ts new file mode 100644 index 00000000..8a761034 --- /dev/null +++ b/lib/ttt.d.ts @@ -0,0 +1,15 @@ +export declare class TicTacToe { + /* X PlayerName */ + playerX: string; + /* Y PlayerName */ + playerY: string; + /* X if true, Y if false */ + _currentTurn: boolean; + _x: number; + _y: number; + _turns: number; + constructor(playerX: string, playerY: string); + get board(): number; + turn(player, index: number): boolean; + turn(player, x: number, y: number): boolean; +}