Here’s the TorqueScript for the mining robots from MoonBaseOne.
It has some slick AI-like routines in it that are exhibiting some emergent behavior. These robots find areas with good resources, and can communicate them to others if they have a “wifi” card. Also, robots can receive upgrades that improve their performance.

