Skip to content

Instantly share code, notes, and snippets.

View py
import math
import random
def do_turn(pw):
planets = pw.planets()
if len(pw.my_planets()) == 0:
return
source = findGreatest(pw.my_planets())
dest = findNearest(source,planets)