From: Sam Moore Date: Mon, 5 Dec 2011 15:52:42 +0000 (+0800) Subject: Fixed error in asmodeus.py due to stupidity X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=69c1e487ebc96ebdcfd586d77c911a833c020474;p=progcomp2012.git Fixed error in asmodeus.py due to stupidity - Originally MoveCycle was called MakeMove and MakeMove was called MakeRandomMove - So when I changed the names I forgot to call MoveCycle instead of the new MakeMove --- diff --git a/samples/asmodeus/asmodeus.py b/samples/asmodeus/asmodeus.py index 3a104fd..2f83db6 100755 --- a/samples/asmodeus/asmodeus.py +++ b/samples/asmodeus/asmodeus.py @@ -56,7 +56,7 @@ class Asmodeus: self.board = [] self.units = [] if self.Setup(): - while self.MakeMove(): + while self.MoveCycle(): #derp derp derp pass @@ -87,7 +87,7 @@ class Asmodeus: def MakeMove(self): #TODO: Over-ride this function in base classes with more complex move behaviour - #sys.stderr.write("Asmodeus MakeRandomMove here...\n") + #sys.stderr.write("Asmodeus MakeMove here...\n") #self.debugPrintBoard() while True: if len(self.units) <= 0: