2017 © Pedro Peláez
 

library minimax

MiniMax engine for game decision making

image

lucidtaz/minimax

MiniMax engine for game decision making

  • Tuesday, October 10, 2017
  • by LucidTaZ
  • Repository
  • 1 Watchers
  • 4 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Build Status Scrutinizer Code Quality Code Coverage, (*1)

MiniMax engine in PHP

This library provides easy integration of the MiniMax game decision making algorithm into your game, using a simple interface to separate the algorithm from the game logic., (*2)

Usage

To use this library, first make sure you implement each interface in lucidtaz\minimax\game., (*3)

Then, simply construct an instance of lucidtaz\minimax\engine\Engine, give it the Player to act as, and when it is the player's turn, call the decide() method. This will result in the GameState instance that results after the engine takes its move., (*4)

In code:, (*5)

class MyPlayer implements \lucidtaz\minimax\game\Player
{
    ...
}

class MyGameState implements \lucidtaz\minimax\game\GameState
{
    ...
}

$player = new MyPlayer(...);
$engine = new \lucidtaz\minimax\engine\Engine($player);

$gameState = new MyGameState(...);

$newGameState = $engine->decide($gameState);

For an example, see the tests/tictactoe directory or any of the other sample game implementations in tests/., (*6)

The Versions

10/10 2017

dev-master

9999999-dev

MiniMax engine for game decision making

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

by Thijs Zumbrink

26/07 2017

0.2.0

0.2.0.0

MiniMax engine for game decision making

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

by Thijs Zumbrink

10/03 2017

dev-appease-phpstan

dev-appease-phpstan

MiniMax engine for game decision making

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

by Thijs Zumbrink

11/05 2016

0.1.0

0.1.0.0

MiniMax engine for game decision making

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

by Thijs Zumbrink