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); }