예제 #1
0
 def testSmartness4(self):
     hobo = Hobo()
     hobo.runningResults = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0]]
     hobo.runningL0 = [15, 20]
     hobo.runningL1 = [10, 5]
     hobo.info = [[0, 0], []]
     hobo.act(4)
     self.assertEqual([0, 1], hobo.positionHistory)
예제 #2
0
 def testSmartness3(self):
     hobo = Hobo()
     hobo.info = [[1, 1], []]
     hobo.runningResults = [[1, 1, 1, 1, 1], [0, 0]]
     hobo.runningL0 = [8, 10]
     hobo.runningL1 = [5, 3]
     hobo.act(3)
     self.assertEqual([0, 1], hobo.positionHistory)
예제 #3
0
 def testSmartness2(self):
     hobo = Hobo()
     hobo.info = [[1, 1], [1, 0]]  # Second list is paper plane.
     hobo.act(2)
     self.assertEqual([0, 1], hobo.positionHistory)
예제 #4
0
 def testSmartness1(self):
     hobo = Hobo()
     hobo.info = [[1, 0], []]
     hobo.act(1)
     self.assertEqual([0, 1], hobo.positionHistory)