From bf474e63812bbdde99355d4a9caa95a513a2cfed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Cort=C3=A9s?= Date: Thu, 3 Dec 2020 02:23:47 -0300 Subject: [PATCH] Toboggan has 2 g --- 2020/day_3/{tobogan_trajectory.py => toboggan_trajectory.py} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename 2020/day_3/{tobogan_trajectory.py => toboggan_trajectory.py} (100%) diff --git a/2020/day_3/tobogan_trajectory.py b/2020/day_3/toboggan_trajectory.py similarity index 100% rename from 2020/day_3/tobogan_trajectory.py rename to 2020/day_3/toboggan_trajectory.py index 7145777..aed8acd 100644 --- a/2020/day_3/tobogan_trajectory.py +++ b/2020/day_3/toboggan_trajectory.py @@ -4,8 +4,8 @@ with open('input') as f: width, height = (len(data[0], len(data)) slopes = ((1, 1),(3, 1),(5, 1),(7, 1),(1, 2)) -result = 1 +result = 1 for slope in slopes: trees = 0 right, down = slope