# ultimate-ttt

> Nodejs implementation of Ultimate Tic Tac Toe

Latest version **4.5.0** (published 2017-05-23) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install ultimate-ttt
pnpm add ultimate-ttt
yarn add ultimate-ttt
bun add ultimate-ttt
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 4.5.0 |
| Published | 2017-05-23 |
| First published | 2017-01-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Alejandro U. Alvarez |
| Maintainers | aurbano |
| Keywords | tic, tac, toe, ultimate |

## Links

- npm: https://www.npmjs.com/package/ultimate-ttt
- Repository: https://github.com/aurbano/ultimate-ttt
- Homepage: https://github.com/aurbano/ultimate-ttt#readme
- Issues: https://github.com/aurbano/ultimate-ttt/issues
- npm.io page: https://npm.io/package/ultimate-ttt

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 4.5.0 (latest) — 2017-05-23
- 4.4.1 — 2017-05-23
- 4.4.0 — 2017-05-23
- 4.3.0 — 2017-05-22
- 4.2.0 — 2017-05-22
- 4.1.3 — 2017-05-22
- 4.1.2 — 2017-05-22
- 4.1.1 — 2017-05-22
- 4.1.0 — 2017-05-22
- 4.0.0 — 2017-05-22
- 3.1.0 — 2017-03-16
- 3.0.0 — 2017-03-16
- 2.1.3 — 2017-03-15
- 2.1.2 — 2017-02-28
- 2.1.1 — 2017-01-31
- … 8 more at https://npm.io/package/ultimate-ttt/versions

## README

# Ultimate Tic Tac Toe
> Ultimate Tick Tack Toe implementation for algorithmic battles & hackathons :)

[![Travis](https://img.shields.io/travis/socialgorithm/ultimate-ttt-js.svg)](https://travis-ci.org/socialgorithm/ultimate-ttt-js)
[![npm](https://img.shields.io/npm/v/ultimate-ttt.svg)](https://www.npmjs.com/package/ultimate-ttt)
[![Coverage Status](https://coveralls.io/repos/github/socialgorithm/ultimate-ttt-js/badge.svg?branch=master)](https://coveralls.io/github/socialgorithm/ultimate-ttt-js?branch=master)
[![npm](https://img.shields.io/npm/dm/ultimate-ttt.svg)](https://www.npmjs.com/package/ultimate-ttt)
[![npm](https://img.shields.io/npm/l/ultimate-ttt.svg)](https://www.npmjs.com/package/ultimate-ttt)
[![Codacy grade](https://img.shields.io/codacy/grade/62cc5c03fbd648f983ef2df8398d2c98.svg)](https://www.codacy.com/app/aurbano/ultimate-ttt-js)

This is a JavaScript implementation of the [Ultimate Tic Tac Toe](https://mathwithbaddrawings.com/2013/06/16/ultimate-tic-tac-toe/) game.

What this package provides is a class that holds all game state and performs all required logic, exposing a simple API.

Example state at a given point:

```js
import UTTT from 'ultimate-ttt';

const game = new UTTT();

// ... perform some moves ...

console.log(game.prettyPrint());

/*

Outputs the following:

1 - - | - - - | - - -
0 - - | - - - | - - -
1 - - | 1 - - | - - -
------+-------+-------
1 - - | - - - | - - -
- - - | - - - | - - -
- - - | - - - | - - -
------+-------+-------
- 1 - | - - - | - - -
- - - | - - - | - - -
- - - | - - - | - - -
------+-------+-------
*/
```

## Getting started

Install from npm:

```bash
$ npm install --save ultimate-ttt
```

Import and use:

```js
import UTTT from 'ultimate-ttt';
const game = new UTTT();
```

## [API Documentation](https://socialgorithm.org/ultimate-ttt-js/)

## Projects using this

* [**uttt-player-js**](https://github.com/socialgorithm/uttt-player-js) UTTT Algorithm that plays at random, provided as a base for your own algorithms!
* [**Ultimate-ttt-server**](https://github.com/socialgorithm/ultimate-ttt-server): Game server that uses this package as a game engine to pitch two playing algorithms agains each other.

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