A compiler for the Boilerplate cellular automaton game, converting grid layouts into executable JavaScript that simulates shuttle movement and pressure. Current version 1.0.3 (unstable, no recent updates). Includes a parser (coffee-script) from grid JSON to an AST-like structure and a JS codegen outputting either bare functions, Node modules, or IIFE wrappers. Key limitations: cannot compile worlds where two shuttles could conflict, lacks button support, and has a primitive pressure API. No TypeScript types, limited test coverage, and brittle against grid complexity.
npm install boilerplate-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates importing the compiler, defining a simple grid, and compiling it with options. Note: compileGrid returns undefined when stream is set; output goes to stream.
Redesign grid layout to ensure shuttles never have overlapping potential states.
Avoid using stream; capture output via string concatenation or implement a wrapper.
Do not rely on specific property names or nesting; treat parser result as opaque.
Remove buttons from the grid before compiling.
Wrap the compiled module to track pressure manually by analyzing region geometry.
Modify shuttle paths or initial positions to eliminate overlap.
Ensure grid object uses string keys like '0,0' and values are valid Boilerplate cell types.
Use const compiler = require('boilerplate-compiler'); then compiler.compileGrid(...).No dependency data recorded yet.