aboutsummaryrefslogtreecommitdiff
path: root/2023/20-Pulse_Propagation/first.hs
diff options
context:
space:
mode:
Diffstat (limited to '2023/20-Pulse_Propagation/first.hs')
-rw-r--r--2023/20-Pulse_Propagation/first.hs1
1 files changed, 0 insertions, 1 deletions
diff --git a/2023/20-Pulse_Propagation/first.hs b/2023/20-Pulse_Propagation/first.hs
index c43e332..8704be9 100644
--- a/2023/20-Pulse_Propagation/first.hs
+++ b/2023/20-Pulse_Propagation/first.hs
@@ -61,7 +61,6 @@ compute input = let (x, y) = computeX 1000 (0, 0) $ initConjuctions input in x *
computeX i n input = let (n', input') = compute' (1, 0) [("button", Low, "broadcaster")] input
in computeX (i-1) (scoreAdd n n') input'
compute' :: (Int, Int) -> [(String, Pulse, String)] -> Input -> ((Int, Int), Input)
- compute' n [] input = (n, input)
compute' n signals input | length stepAll == 0 = (n, input)
| otherwise = compute' (scoreAdd n $ score stepAll) stepAll alterAll
where