Whew... after the 17th playthrough, I realized that I can't do any better. It seems to have turned out quite well =) The most interesting thing is that if you change the strategy even by half a step, the nasty computer immediately goes in the wrong direction!!! K-A-A-A-SHMAR!!! :D In general, I had to work hard. I advise everyone to try different tactics. Go in different directions. Sometimes it turns out unexpectedly and interestingly!
Added 1 minute ago
And the tournament can be held indefinitely... Like a cup - stage after stage as new tasks appear and are agreed upon with the host. Maintain a general results table (we'll decide how to take them into account later, it's not a problem), and summarize the results at the end of the season.
That's my opinion.
What do you think?
Added 9 minutes ago
By the way, I didn't use the "hero digger"... =)