@aeon-games/robot-factory
v5.0.0
Published
Robot Factory
Readme
Robot Factory
Purpose
Robot Factory is an automated resource management game within the Aeon Games ecosystem. Players (and agents) must program simple robots to navigate a hexagonal grid, pick up boxes from sources, and drop them at designated destinations. The game uses a simple instruction-based programming model (MOVE, TURN, PICK_UP, etc.) to solve spatial puzzles and optimize throughput.
Key Features
- Hexagonal Programming: Robots navigate using 6 directions (E, NE, NW, W, SW, SE).
- Instruction Cells: Players place special tiles on the hex board to program the robot's behavior as it passes over them.
- Puzzle Mechanics: Levels involve navigating around walls and managing timing to avoid collisions or inefficiencies.
Key Files
src/index.tsx: Core game implementation, including state management, robot execution loop, and level generation.package.json: Package metadata and dependencies.tsconfig.json: TypeScript configuration.
Usage
The RobotFactory component is integrated into the Aeon Games environment:
import RobotFactory from '@aeon-games/robot-factory';
<RobotFactory
gameId="factory-lvl-1"
difficulty="medium"
onSuccess={...}
/>Mechanics
- Robot Instructions:
MOVE: Move one hex forward in the current direction.TURN_LEFT/TURN_RIGHT: Rotate the robot's heading by 60 degrees.PICK_UP: Grab a box if at a source cell.DROP: Release a box at a destination cell.IF_WALL: Conditional logic based on upcoming obstacles.
