def main(): slopes = read_file_to_list("input3.txt") tree_counts = list() for x in [1, 3, 5, 7]: tree_counts.append(move_x_right_1_down(slopes, x)) tree_counts.append(move_1_right_2_down(slopes)) product = multiply(tree_counts) print(product)
def test_move_x_right_1_down(self): self.assertEqual(move_x_right_1_down(test_data, 7), 4)