Exemple #1
0
 def test_from_notation(self):
     for notation_row, position_row in zip(self.notations, self.positions):
         for notation, position in zip(notation_row, position_row):
             self.assertEqual(position, Position.from_notation(notation))
Exemple #2
0
 def move(self, begin, end):
     begin_position = Position.from_notation(str(begin))
     end_position = Position.from_notation(str(end))
     self._board.at(begin_position).move_to(end_position)
     return self.turn()
Exemple #3
0
 def test_from_notation(self):
     for notation_row, position_row in zip(self.notations, self.positions):
         for notation, position in zip(notation_row, position_row):
             self.assertEqual(position, Position.from_notation(notation))