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
- Host: GitHub
- URL: https://github.com/pauldraper/game-plus
- Owner: pauldraper
- License: other
- Created: 2019-02-19T10:07:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-19T10:39:58.000Z (over 7 years ago)
- Last Synced: 2025-09-21T23:55:37.202Z (9 months ago)
- Language: TypeScript
- Size: 9.77 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```