You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
377 B
24 lines
377 B
<?php
|
|
|
|
namespace Coffee;
|
|
|
|
require __DIR__ . '/vendor/autoload.php';
|
|
|
|
try {
|
|
$description = [
|
|
[0, 1, 0, 1],
|
|
[1, 0, 0, 0],
|
|
[0, 0, 0, 1],
|
|
[0, 0, 1, 1]
|
|
];
|
|
|
|
$map = new Map($description);
|
|
|
|
$table = new Table($map);
|
|
|
|
var_dump($table->getSpots());
|
|
|
|
}
|
|
catch (\Exception $e) {
|
|
echo 'Caught exception: ' . $e->getMessage() . "\n";
|
|
}
|
|
|