Skip to content

pauldraper/game-plus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Infrastructure for turned-based games

Resources

License

Stars

Watchers

Forks

Packages

No packages published