0.1.6 • Published 3 years ago
tic-tac-toe-widget v0.1.6
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.