return elif action ="upand ==simple_game_env ydim- return elif action ="downand == return elsereturn def towards_prize( , ,action, )"""action goes in the direction of the prize from ( , )""if is nonereturn elif ==( , )take into account the wall near the top-left prize if action ="leftand ( > or == and < )return elif action ="downand ( > and > )return elif action ="upand ( == or < )return elsereturn elsepx,py if ==( , and == if (action=="rightand or (action=="upand < )return elsereturn if (action ="upand <pyor (action ="downand py< )return elif (action ="leftand px<xor (action ="rightand <px)return elsereturn def towards_repair( , ,action)"""returns if action is towards the repair station ""if action ="upand ( > and < or == and < )return elif action ="leftand > return elif action ="rightand == and < return elif action ="downand == and > return elsereturn version june