tic-tac-toe-widget

0.1.6 • Public • Published

Tic-tac-toe-widget

Tic tac toe widget is a React based JS widget for providing custom and interactive tic-tac-toe sessions. The features include :

 - The board is customizable size from 3X3 to 20X20.
 - Every move is validated.
 - Informs user if there is a tie or if there is a winner.
 - Player 'X' always starts. User is informed on who plays next.
 - State of the board is maintained after every reload.
 - User can choose to reset the game anytime.

Stand-alone build and run

Clone this repository and run the below mentioned scripts.

npm install
npm start

Consume as a widget

Use the package manager npm to install tic tac toe widget.

Add dependency

npm i tic-tac-toe-widget

Usage

import Widget from "tic-tac-toe-widget";

<Widget />

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Readme

Keywords

none

Package Sidebar

Install

npm i tic-tac-toe-widget

Weekly Downloads

1

Version

0.1.6

License

none

Unpacked Size

33.2 kB

Total Files

20

Last publish

Collaborators

  • rohinitd