Ejemplo n.º 1
0
 def rank(self):
     """The rank as a character in %s""" % self.ranks
     return self.ranks[X88.to_y(self._x88)]
Ejemplo n.º 2
0
 def y(self):
     """The y-coordinate, starting with 0 for the first rank."""
     return X88.to_y(self._x88)
Ejemplo n.º 3
0
 def test_to_y(self):
     self.assertEqual(X88.to_y(0), 0)
Ejemplo n.º 4
0
 def rank(self):
     """The rank as a character in %s""" % self.ranks
     return self.ranks[X88.to_y(self._x88)]
Ejemplo n.º 5
0
 def y(self):
     """The y-coordinate, starting with 0 for the first rank."""
     return X88.to_y(self._x88)
Ejemplo n.º 6
0
 def test_to_y(self):
     self.assertEqual(X88.to_y(0), 0)