def test_translate_sgf_move(self):
     self.assertEqual(
         ";B[db]",
         translate_sgf_move(go.PlayerMove(go.BLACK, (1, 3))))
     self.assertEqual(
         ";W[aa]",
         translate_sgf_move(go.PlayerMove(go.WHITE, (0, 0))))
     self.assertEqual(
         ";W[]",
         translate_sgf_move(go.PlayerMove(go.WHITE, None)))
Ejemplo n.º 2
0
 def test_translate_sgf_move(self):
     self.assertEqual(
         ";B[db]",
         translate_sgf_move(go.PlayerMove(go.BLACK, (1, 3))))
     self.assertEqual(
         ";W[aa]",
         translate_sgf_move(go.PlayerMove(go.WHITE, (0, 0))))
     self.assertEqual(
         ";W[]",
         translate_sgf_move(go.PlayerMove(go.WHITE, None)))
Ejemplo n.º 3
0
 def test_translate_sgf_move(self):
     self.assertEqual(
         ';B[db]', translate_sgf_move(go.PlayerMove(go.BLACK, (1, 3)),
                                      None))
     self.assertEqual(
         ';W[aa]', translate_sgf_move(go.PlayerMove(go.WHITE, (0, 0)),
                                      None))
     self.assertEqual(
         ';W[]', translate_sgf_move(go.PlayerMove(go.WHITE, None), None))
     self.assertEqual(
         ';B[db]C[comment]',
         translate_sgf_move(go.PlayerMove(go.BLACK, (1, 3)), 'comment'))
Ejemplo n.º 4
0
 def test_translate_sgf_move(self):
   self.assertEqual(
       ';B[db]',
       translate_sgf_move(go.PlayerMove(go.BLACK, (1, 3)), None))
   self.assertEqual(
       ';W[aa]',
       translate_sgf_move(go.PlayerMove(go.WHITE, (0, 0)), None))
   self.assertEqual(
       ';W[]',
       translate_sgf_move(go.PlayerMove(go.WHITE, None), None))
   self.assertEqual(
       ';B[db]C[comment]',
       translate_sgf_move(go.PlayerMove(go.BLACK, (1, 3)), 'comment'))