Esempio n. 1
0
function test($name, $moves, $winner = Outcome::Black)
{
    $b = new Board();
    $outcome = $b->play($moves);
    assert($outcome === $winner, $name . " failed");
    printf($name . ": ");
    printf($outcome);
    printf($b);
}