swarm-0.6.0.0: 2D resource gathering game with programmable robots
LicenseBSD-3-Clause
Safe HaskellSafe-Inferred
LanguageHaskell2010

Swarm.Game.Step.Flood

Description

Implementation of the Volume command for robots.

Note: If the robot is currently on an unwalkable cell (which may happen in the case of teleportation or if an entity is placed or pushed into its cell), the volume shall be zero.

Documentation

floodFill :: HasRobotStepState sig m => Cosmic Location -> Int -> m (Maybe Int) Source #