예제 #1
0
 def test_h8a1(self):
     move = 'h8a1'
     code = utility.uci_to_int(move)
     uci = utility.int_to_uci(code)
     self.assertEqual(uci, 'h8a1')
예제 #2
0
 def test_g1d3(self):
     move = 'g1d3'
     code = utility.uci_to_int(move)
     uci = utility.int_to_uci(code)
     self.assertEqual(uci, 'g1d3')
예제 #3
0
 def test_a1h8(self):
     move = 'a1h8'
     code = utility.uci_to_int(move)
     uci = utility.int_to_uci(code)
     self.assertEqual(uci, 'a1h8')
예제 #4
0
 def test_h8a1(self):
     move = 'h8a1'
     code = utility.uci_to_int(move)
     self.assertEqual(code, 0x3f00)
예제 #5
0
 def test_e2e4(self):
     move = 'e2e4'
     code = utility.uci_to_int(move)
     uci = utility.int_to_uci(code)
     self.assertEqual(uci, 'e2e4')
예제 #6
0
 def test_a1h8(self):
     move = 'a1h8'
     code = utility.uci_to_int(move)
     self.assertEqual(code, 0x003f)
예제 #7
0
 def test_h8h8(self):
     move = 'h8h8'
     code = utility.uci_to_int(move)
     self.assertEqual(code, 0x3f3f)
예제 #8
0
 def test_g1d3(self):
     move = 'g1d3'
     code = utility.uci_to_int(move)
     self.assertEqual(code, 0x0613)
예제 #9
0
 def test_g1e2(self):
     move = 'g1e2'
     code = utility.uci_to_int(move)
     self.assertEqual(code, 0x060C)
예제 #10
0
 def test_e2e4(self):
     move = 'e2e4'
     code = utility.uci_to_int(move)
     self.assertEqual(code, 0x0C1C)