Miners

This is a Langton Ant, a Genetic Algorithm Solver, and an Idle Game in one!
Your goal is to make your miner equipment survive as long as possible before it runs out of energy. Discover new places, build castles, escape the castles, and build drones to help you out. But careful not to spend too much energy on them. Can you find the sweet spot of energy producing equipment versus energy consuming point generation?
This is a learner project entirely in Rust. Works in the CLI and in the browser as identical as possible. No workers (Rust thread suspends awaiting a JS promise to resolve). This code is available on GitHub.
Jan-Feb 2022 (c) Peter van der Zee
controls
input
Camera

Create config and initial miner and press start to run

Initial miner config: