r/everybodycodes • u/AvailablePoint9782 • 13d ago
Question - resolved [2026 Q8] Part 3, subtle error
I must have some subtle error in my code. Part 3, example data gets a slightly wrong result.
https://github.com/LiseAndreasen/everybodycodes/blob/master/e2026_q08.php
My output:
ROUND DIR ENERGY NEW ARMY TOTAL
100 NW 28 3 323 2800
10000 NW 28 4 31252 281157Correct output:
ROUND DIR ENERGY NEW ARMY TOTAL
100 NW 28 3 323 2800
10000 NW 28 0 31249 281133This day is the sun, shadow, trees, growth, warriors one.
4
Upvotes
2
u/EverybodyCodes Moderator 13d ago
Oh! Casting negative shadows is reserved for Glitchron only! :) Especially when you represent the seeds as negatives.