projects
/
advent-of-code-24.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eba62a6
)
Tidying
author
Neil Smith
<NeilNjae@users.noreply.github.com>
Fri, 13 Dec 2024 12:01:08 +0000
(12:01 +0000)
committer
Neil Smith
<NeilNjae@users.noreply.github.com>
Fri, 13 Dec 2024 12:01:08 +0000
(12:01 +0000)
advent13/Main.hs
patch
|
blob
|
history
diff --git
a/advent13/Main.hs
b/advent13/Main.hs
index 53b6f1c8fa3cc04bf53a823af0b1b88d830e972a..420c0a45edda94bcc621dd3530d1dc1d97bc6149 100644
(file)
--- a/
advent13/Main.hs
+++ b/
advent13/Main.hs
@@
-76,8
+76,6
@@
findABPresses m@(Machine {..})
-- treating L1 being defined by origin and buttonA, L2 by buttonB and prize
intersection :: Machine -> V2 Rational
intersection (Machine {..}) = V2 px py
- -- | denom == 0 = Nothing
- -- | otherwise = Just (V2 px py)
where V2 x2 y2 = buttonA
V2 x4 y4 = prize
V2 x3 y3 = prize ^-^ buttonB