Skip to content

Commit

Permalink
Create ttt.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Kingjux authored May 5, 2024
1 parent 5406aef commit 71a475b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/ttt.d.ts
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 71a475b

Please sign in to comment.