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.
27 lines
526 B
27 lines
526 B
<?php
|
|
|
|
namespace Coffee;
|
|
|
|
require __DIR__ . '/vendor/autoload.php';
|
|
|
|
try {
|
|
// $map = new Map([
|
|
// [0, 1, 0, 1],
|
|
// [1, 0, 0, 0],
|
|
// [0, 0, 0, 1],
|
|
// [0, 0, 1, 1]
|
|
// ]);
|
|
//
|
|
// $table = new Table();
|
|
//
|
|
// foreach ($map->getUnVisitedTiles() as $unVisitedTile) {
|
|
//// $map->vi
|
|
// foreach ($unVisitedTile->getNeighbouringPositions() as $neighbouringPosition) {
|
|
// $tile = $map->getTileByPosition($neighbouringPosition);
|
|
//// if
|
|
// }
|
|
// }
|
|
}
|
|
catch (\Exception $e) {
|
|
echo 'Caught exception: ' . $e->getMessage() . "\n";
|
|
}
|
|
|