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