Skip to content

sahilsinghrana/tictactoe.js

Repository files navigation

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