board

v1.0.1arrow_drop_down
v1.0.1
v1.0.0
v0.1.9
v0.1.8
v0.1.7
v0.1.5
v0.1.4
v0.1.3
v0.1.2
v0.1.1
v0.1.0
v0.0.2
v0.0.1
STATUS
Passing
DOWNLOADS
225
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
13 KB
Board generate dynamic 2d array by props, and manage player turn and check fo winner.
1 contributor
Install board as a package?
Copied
npm i @bit/joshk.tic-tac-toe-game.board
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
modifieddraft
chevron_left
chevron_right
Board ()

Board generate dynamic 2d array by props, and manage player turn and check fo winner.

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

export default (
<Board rows={3} cols={3} numToWin={3} />
)
Properties
NameTypeDescription
rows
(required)
number

number of rows in 2d array

cols
(required)
number

number of columns in 2d array

numToWin
(required)
number

number of matching value to win

Help and resources