Commits

David Jones  committed 1b5ca3c

oops. last one didn't run.

  • Participants
  • Parent commits 429d16b

Comments (0)

Files changed (1)

     """
     This is where all of the game state stuff is calculated.
     """
-    The ships available for each planet is calculated.  I used
-    to c
     if time.time() > self.end_time:
       
       raise OutOfTime()
     return self.score_end_count()
     # return self.score_exponential()
   
-
-  def do_turn(self, end_time):
-    self.update_state()
-    for k in xrange(20):
-      prev_time = time.time()
-      target = self.make_decision()
-      debug("loop time was : %s", time.time() - prev_time)
-      if time.time() > end_time:
-        break
-      if target is None:  break
-      
-    for (src,dst,num) in self.shots:
-      debug("firing %d %d %d", src, dst, num)
-      self.pw.IssueOrder(src,dst,num)
-    
   def get_my_on(self, idx, srcs=None):
     return find_number_on_available(self.pw, self.my_available, idx, self.max_turn,
                                     srcs)