Skip to content

Instantly share code, notes, and snippets.

View netfri25's full-sized avatar

Netanel Friedman netfri25

  • Israel
  • 08:51 (UTC +03:00)
  • Instagram icsmiwtd
View GitHub Profile
def do_turn(pw):
if len(pw.my_fleets()) >= 1:
return
source = -1
source_score = -999999.0
source_num_ships = 0
my_planets = pw.my_planets()
for p in my_planets:
score = float(p.num_ships())
if score > source_score: