core_pb::grid::standard_grid

Constant GRID_PACMAN

Source
pub const GRID_PACMAN: Grid;
Expand description

The official Pacbot Grid

Out-of-bounds areas are replaced with walls to adhere to ComputedGrid rules

use core_pb::grid::standard_grid::GRID_PACMAN;
use core_pb::grid::Grid;
use core_pb::grid::computed_grid::ComputedGrid;

let grid: Grid = GRID_PACMAN;
let computed_grid: ComputedGrid = grid.try_into().unwrap();