8000 GitHub - anthony-nardi/minimaxer: Library for building game trees and running the minimax algorithm for turn-based games
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

anthony-nardi/minimaxer

 
 

Repository files navigation

Minimax Library for Typescript and Javascript

Implements the minimax (negamax) algorithm for 2 player turn based zero-sum games. Using it for a game requires implementing 3 functions:

  • Return a list of moves from a particular game state.
  • Transition from one game state to another by applying a move. Determine if the game state is terminal (end of the game).
  • Return a number representing the value of a game state. One player desires a larger value, the other a smaller value.

See the examples directory for more info.

About

Library for building game trees and running the minimax algorithm for turn-based games

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 88.9%
  • JavaScript 9.5%
  • Shell 1.6%
0