def test_no_diagonal_hills(self): grid = interface.construct_grid("XXXNNXOONXXXXNNOOOXXXNNN") hills_uid = "0356" mechanics.move_man_legal(3, 4, 2, 4, grid) updated_hills_uid = mechanics.get_hills_numbers(grid) self.assertEqual(updated_hills_uid, hills_uid)
def test_unchanged_hills(self): grid = interface.construct_grid("XXXNNNOOOXXXXNNOOOXXXNNN") hills_uid = "02356" mechanics.move_man_legal(3, 4, 3, 5, grid) updated_hills_uid = mechanics.get_hills_numbers(grid) self.assertEqual(updated_hills_uid, hills_uid)