Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Wish I could fly - Hugly 1e9 solution in Clear category for Escape by Ylliw
def escape(jar, fly):
W, H, d = jar
x, y, vx, vy = fly
next_bump=lambda x, y, vx, vy:min(max((W-x)/vx,-x/vx) if vx else 1e9,max((H-y)/vy,-y/vy) if vy else 1e9)
for _ in range(20):
t=next_bump(x,y,vx,vy)
x+=vx*t
y+=vy*t
if y==H and (W-d)/2
Nov. 12, 2019
Comments: