Skip to content

JoshK2/tic-tac-toe-game-using-bit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modular Tic Tac Toe Game built with TypeScript and tested with Mocha components

A simple Tic Tac Toe game build with TypeScript components and test with Mocha tester then shared them to bit for testing in the live PlayGround and see the result of tests runnig in bit.
Allow users to consume the entire game or just a part of the game components using NPM and Yarn or using bit to consume and modify the component directly inside the project.

The game has multiple options to modify the game rules, like the dynamic dimension of the table, and the number of matching value to win the game.

Try the game in live PlayGround in the project collection

Tutorial

See the full tutorial- build your own modular application with React TypeScript components.

Build a Tic Tac Toe App with TypeScript, React and Mocha.

Import and use the entire game component in few seconds with NPM, Yarn and bit

To install components from this project, first configure bit.dev as a scoped registry (one-time action).

npm config set '@bit:registry' https://node.bit.dev

npm i @bit/joshk.tic-tac-toe-game.game
yarn add @bit/joshk.tic-tac-toe-game.game
bit import joshk.tic-tac-toe-game/game

Then import the component in your app:

import React from 'react';
import Game from '@bit/joshk.tic-tac-toe-game.game';

export default <Game />

That's it!

Button and input text

These components is used from bit to work less, and not create from scratch.

PrimeReact

primereact input text component
primereact button component

to install them in your project

yarn add @bit/primefaces.primereact.inputtext
yarn add @bit/primefaces.primereact.button 

Contributing

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

Please make sure to update tests as appropriate.

License

MIT