sahilsinghrana / tictactoe.js

Tic Tac Toe Game engine built with Javascript

Home Page:https://tictactoe.sahilrana.in/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Tic Tac Toe Game engine built with Javascript

https://tictactoe.sahilrana.in/

License:MIT License


Languages

Language:TypeScript 100.0%