# tictactoewinner

> Get winning player on a Tic Tac Toe board

Latest version **0.2.2** (published 2017-01-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install tictactoewinner
pnpm add tictactoewinner
yarn add tictactoewinner
bun add tictactoewinner
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2017-01-20 |
| First published | 2017-01-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Rainer Stropek |
| Maintainers | rstropek |
| Keywords | TicTacToe, Training, Demo |

## Links

- npm: https://www.npmjs.com/package/tictactoewinner
- npm.io page: https://npm.io/package/tictactoewinner

## Recent versions

- 0.2.2 (latest) — 2017-01-20
- 0.2.1 — 2017-01-20
- 0.2.0 — 2017-01-20
- 0.1.1 — 2017-01-20
- 0.1.0 — 2017-01-20

## README

# 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);
```

---
_Source: https://npm.io/package/tictactoewinner · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
