game-plus

0.1.0 • Public • Published

Game Plus

API

  1. Create a State type.
  2. Create a Move type, which is transitions between States.
  3. 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.

yarn run play ttt --player2 ai

Package Sidebar

Install

npm i game-plus

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

34.1 kB

Total Files

23

Last publish

Collaborators

  • pauldraper