Skip to content

Latest commit

 

History

History
60 lines (36 loc) · 1.79 KB

Readme.md

File metadata and controls

60 lines (36 loc) · 1.79 KB

TicTacToe.js

Publish Packages

Publish typedocs

Table of Contents

Install

npm install @sahilsinghrana/tictactoe.js

Usage

import TicTacToe from "@sahilsinghrana/tictactoe.js";

const game = new TicTacToe();

game.board.board; // Board Array

game.play(x, y); // plays a move for user
const TicTacToe = require("@sahilsinghrana/tictactoe.js");
const game = new TicTacToe();

game.board.board; // Board Array

game.play(x, y); // plays a move for user

Examples

VanillaJs ExampleGitHub

Svelte ExampleGitHub

ReactJs ExampleGitHub

API

TypeDocs

Maintainers

@sahilsinghrana

License

MIT © 2024 Sahil Singh Rana