#!/usr/bin/env php
<?php

use BrainGames\Cli;
use BrainGames\EvenGame;

$composerAutoload = [
    __DIR__ . '/../vendor/autoload.php', // standalone with "composer install" run
    __DIR__ . '/../../../autoload.php',  // script is installed as a composer binary
];
foreach ($composerAutoload as $autoload) {
    if (file_exists($autoload)) {
        require($autoload);
        break;
    }
}

(new Cli())->run(new EvenGame());