The Farmer Was Replaced Labyrinth-Code — frische Wände, dann Gold

Neu für 1.0+. Frische Labyrinthe ohne Schleifen. Wiederverwendung erzeugt Schleifen — measure() oder viele kleine Labyrinthe.

Labyrinth-Regeln in 1.0+

  • Düngen → Weird_Substance (infizierte Ernte zahlt halb Substance). Vorrat aufbauen? Weird Substance zuerst farmen
  • Busch + Weird_Substance → Labyrinth. Mit Upgrades grob verdoppeln.
  • Nur Schatz ernten. Sonst verschwindet das Labyrinth.
  • `measure()` überall = Schatzkoordinaten.
  • Wiederverwendung: Schleifen möglich, nicht mehr Gold.

Anfänger: frisches Labyrinth + linke Wand

python
def spawn_maze():
	if get_ground_type() != Grounds.Soil:
		till()
	harvest()
	plant(Entities.Bush)
	# Beginner (no / low maze upgrades): n = world size.
	# With upgrades, wiki: world_size * 2**(num_unlocked(Unlocks.Mazes) - 1)
	n = get_world_size()
	use_item(Items.Weird_Substance, n)

def solve_left_wall():
	dirs = [North, East, South, West]
	facing = 0
	while get_entity_type() != Entities.Treasure:
		left = (facing - 1) % 4
		if can_move(dirs[left]):
			facing = left
			move(dirs[facing])
		elif can_move(dirs[facing]):
			move(dirs[facing])
		else:
			facing = (facing + 1) % 4
	harvest()

clear()
while True:
	spawn_maze()
	solve_left_wall()

Bei Schleifen: zu measure()-Koordinaten

Erst Schatzkoordinaten, dann mit Wandchecks laufen.

python
def go_toward(tx, ty):
	# Greedy step with can_move — enough for teaching
	while get_pos_x() != tx or get_pos_y() != ty:
		if get_pos_x() < tx and can_move(East):
			move(East)
		elif get_pos_x() > tx and can_move(West):
			move(West)
		elif get_pos_y() < ty and can_move(North):
			move(North)
		elif get_pos_y() > ty and can_move(South):
			move(South)
		else:
			# Blocked — spin with left-wall for a bit
			return False
	return True

tx, ty = measure()
go_toward(tx, ty)
if get_entity_type() == Entities.Treasure:
	harvest()

Multi-Drohne Gold (Reddit Sep 2026)

  • Viele kleine Labyrinthe schlagen ein großes mit 32 Drohnen.
  • Verzweigungs-Drohnen sind hübsch, nicht maximal gold/s.
  • Leaderboard ≈ 301 Schätze × volles 32×32.