Exemplo n.º 1
0
 def test_nice_with_itself(self):
     p1 = axelrod.MirrorMindReader()
     p2 = axelrod.MirrorMindReader()
     self.assertEqual(p1.strategy(p2), C)
Exemplo n.º 2
0
 def test_vs_defector(self):
     p1 = axelrod.MirrorMindReader()
     p2 = axelrod.Defector()
     self.assertEqual(p1.strategy(p2), D)
Exemplo n.º 3
0
 def test_strategy(self):
     p1 = axelrod.MirrorMindReader()
     p2 = axelrod.Cooperator()
     self.assertEqual(p1.strategy(p2), C)
Exemplo n.º 4
0
 def test_nice_with_itself(self):
     P1 = axelrod.MirrorMindReader()
     P2 = axelrod.MirrorMindReader()
     self.assertEqual(P1.strategy(P2), C)
Exemplo n.º 5
0
 def test_vs_defector(self):
     P1 = axelrod.MirrorMindReader()
     P2 = axelrod.Defector()
     self.assertEqual(P1.strategy(P2), D)
Exemplo n.º 6
0
 def test_strategy(self):
     P1 = axelrod.MirrorMindReader()
     P2 = axelrod.Cooperator()
     self.assertEqual(P1.strategy(P2), C)