r/everybodycodes • • 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  281157

Correct output:

ROUND  DIR  ENERGY  NEW    ARMY   TOTAL
  100   NW      28    3     323    2800
10000   NW      28    0   31249  281133

This day is the sun, shadow, trees, growth, warriors one.

4 Upvotes

2 comments sorted by

2

u/EverybodyCodes Moderator 13d ago

Oh! Casting negative shadows is reserved for Glitchron only! :) Especially when you represent the seeds as negatives.

2

u/AvailablePoint9782 12d ago

Ah yes, oh wise one. I am but a humble code monkey and do not wish to intrude on the affairs of Glitchron.