+
+
+
+ @isset($grid)
+
+
Kantenlänge
+
+ {{ $grid->size }}
+
+
+
+
Startposition
+
+ {{ $ant->position_y.'x'.$ant->position_x }}
+
+
+
+
Blickrichtung
+
+ {{ $ant->direction }}
+
+
+
+
Züge
+
+ {{ $grid->move_counter }}
+
+ @endisset
+
+
+ @isset($grid)
+
+ @foreach($grid->colors ?? [] as $rowIndex => $rowValue)
+ @foreach($rowValue ?? [] as $colIndex => $colValue)
+
$colValue == \App\Models\Grid::BLACK, 'bg-white' => $colValue == \App\Models\Grid::WHITE])>
+ @if($ant->position_y == $rowIndex && $ant->position_x == $colIndex)
+
$ant->direction == \App\Models\Ant::DIRECTION_LEFT,
+ '-rotate-90' => $ant->direction == \App\Models\Ant::DIRECTION_RIGHT,
+ 'rotate-180' => $ant->direction == \App\Models\Ant::DIRECTION_TOP
+ ])>
+ Y
+
+ @else
+
+ @endif
+
+ @endforeach
+ @endforeach
+
+
+ @empty($end)
+
+ @else
+
+ ENDE
+
+ @endempty
+ @endisset
+