Library for parsing QuickFort blueprints.
<?php declare(strict_types=1);
use QuickFort\Parser\Dig;
$blueprint = <<<BLUEPRINT_END
#dig A simple dig blueprint
d,~,~,#
d,d,d,#
~,~,d,#
#,#,#,#
BLUEPRINT_END;
$parser = new Dig();
$parser->setBlueprint($blueprint);
$layers = $parser->getLayers();
[
['d'],
['d', 'd', 'd'],
[2 => 'd'],
[],
]
- Build layer
- Place layer
- Query layer
- Dwarf Fortress http://www.bay12games.com/dwarves/
- QuickFort http://www.joelpt.net/quickfort/
- QuickFort (GitHub) https://github.com/joelpt/quickfort