tictactoewinner
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

Tic Tac Toe Winner

Disclaimer

This component has been created for training purposes only. It is used to demonstrate how to work with NPM. This component should not be used for and kind of production use.

Description

Gets the winner on a Tic Tac Toe board.

Usage

var winner = getTicTacToeWinner(
  [ 0, 0, 0, 1, 1, 1, 2, 2, 0 ], // Board data
  0); // Value representing an unset field
console.log("The winner is " + winner);

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i tictactoewinner

      Weekly Downloads

      3

      Version

      0.2.2

      License

      MIT

      Last publish

      Collaborators

      • rstropek