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 2 months ago
JSON representation
unbeatable tictactoe engine implemented in ReasonML
- Host: GitHub
- URL: https://github.com/venil7/reasonml-tictactoe
- Owner: venil7
- Created: 2018-01-25T22:34:43.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-22T17:50:39.000Z (almost 7 years ago)
- Last Synced: 2024-10-16T09:32:37.355Z (3 months ago)
- Topics: game-development, game-engine, minimax, react, reasonml, tic-tac-toe
- Language: OCaml
- Homepage:
- Size: 235 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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
```