Summary: Turtle Modular Mineral Code Code Design
github: project homepage
Gitee: project mirror image
Introduction to the code :
TURTLETOOL.LUA: The function of encapsulation of barriers and movement is encapsulated.
Mind.LUA: The call function generates a basic mineral unit and assembled.Enter the current Y value and target Y value to dig up to the target Y value automatically.
Prospective function (completed, not complete test):
After arriving at the target Y value, it automatically rises to the nearby Y value, which is convenient for recycling.
Specific ideas:
Basic unit: dig and advance a grid, dig the upper and lower squares, and form a horizontal T -shaped.
The idea of assembly unit:
Unlimited cycle: {Repeat two basic units, turn left or right}.