Effect main: >> if iron > 2 and at_workshop and A == craft: >> Reward 10 <> iron' -> iron - 2 << else: >> Reward -1
Effect main: >> if gold == 5: >> Reward 7 << elif gold == 3: >> Reward 4
Effect main: >> if A == up: >> y_position' -> y_position + 1 << elif A == down: >> y_position' -> y_position - 1 << elif A == right: >> x_position' -> x_position + 1 << elif A == left: >> x_position' -> x_position - 1
Effect main: >> if energy > 1: >> -> navigate
Effect main: >> if on_slippery_tile and A == up: >> y_position' -> y_position + 1 with P(0.6) <> or x_position' -> x_position + 1 with P(0.2) <> or x_position' -> x_position - 1 with P(0.2)
Effect main: >> if A == down: >> with P(0.3): >> Reward 10 <> S' -> S - 1 << or with P(0.7): >> Reward -5 <> S' -> S + 1