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

https://github.com/pauldraper/game-plus

Infrastructure for turned-based games
https://github.com/pauldraper/game-plus

Last synced: 21 days ago
JSON representation

Infrastructure for turned-based games

Awesome Lists containing this project

README

          

# Game Plus

## API

1. Create a `State` type.
1. Create a `Move` type, which is transitions between `State`s.
1. Implement the `Game` interface, which list moves, performs moves, and scores the games.

You can now do several things with the modeled game, such as play it with `Minimax`.

## Examples

Play Tic-Tac-Toe against an AI.

```sh
yarn run play ttt --player2 ai
```