Fixed error in asmodeus.py due to stupidity
authorSam Moore <[email protected]>
Mon, 5 Dec 2011 15:52:42 +0000 (23:52 +0800)
committerSam Moore <[email protected]>
Mon, 5 Dec 2011 15:52:42 +0000 (23:52 +0800)
- 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

samples/asmodeus/asmodeus.py

index 3a104fd..2f83db6 100755 (executable)
@@ -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:

UCC git Repository :: git.ucc.asn.au