PHP code example of alcalyn / awale

1. Go to this page and download the library: Download alcalyn/awale library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

alcalyn / awale example snippets

 php
use Alcalyn\Awale\Awale;

$awale = new Awale::createWithSeedsPerContainer(4);
 php
echo $awale;

/* Outputs:

Awale game instance.
     4  4  4  4  4  4
  0                    0
     4  4  4  4  4  4
seeds per container: 4
current player: PLAYER_0
last move: null

*/