Exemplo n.º 1
0
 def testDetectCorner(self):
     b=Board()
     [b.mark(l,m) for l,m in ((0,'x'),(4,'o'),(8,'x'))]
     smartAI=AI('o',AI.moveAI)
     self.assertEqual(smartAI.detectCornerManeuver(b), 1)