Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/venil7/ReasonML-TicTacToe

unbeatable tictactoe engine implemented in ReasonML
https://github.com/venil7/ReasonML-TicTacToe

game-development game-engine minimax react reasonml tic-tac-toe

Last synced: about 1 month ago
JSON representation

unbeatable tictactoe engine implemented in ReasonML

Lists

README

        

# reason-tttoe

`reason-tttoe` is a Tic-Tac-Toe engine. This library can be used for game development in the browser, node.js, mobile or native. Its code is mostly a port of my [Haskell code](https://github.com/venil7/Programming-in-Haskell-exercises-/blob/master/tttoe/ttoe.hs).

See [Example](./example/) of how it can be used on the web.

## Build
[![Build Status](https://travis-ci.org/venil7/ReasonML-TicTacToe.svg?branch=master)](https://travis-ci.org/venil7/ReasonML-TicTacToe)
```
npm install
npm run build
```

## Install
```
npm install reason-tttoe --save
```
### Update `bsconfig.json`
```
...
"bs-dependencies": [
"reason-tttoe"
]
...
```

## Run [Example](./example/)
```
cd example
npm install
npm start
```
*this is how example it looks*

![example gameplay](https://user-images.githubusercontent.com/508022/36355005-4baa9e48-14d4-11e8-8ec8-dac0aee5c872.gif)

## Run Tests

```
npm run test
```