def rank(self): """The rank as a character in %s""" % self.ranks return self.ranks[X88.to_y(self._x88)]
def y(self): """The y-coordinate, starting with 0 for the first rank.""" return X88.to_y(self._x88)
def test_to_y(self): self.assertEqual(X88.to_y(0), 0)