Add the best value rule #45

Closed
opened 2026-10-28 16:16:52 +01:00 by Tirsvad · 0 comments
Owner

Add a pure function that picks the affordable upgrade with the lowest price per cookie per second, and a BEST_VALUE strategy. Unit tested, including ties and unknown production.

Phase: MIL-008
Reference: O4

Add a pure function that picks the affordable upgrade with the lowest price per cookie per second, and a `BEST_VALUE` strategy. Unit tested, including ties and unknown production. Phase: MIL-008 Reference: O4
Tirsvad added this to the MIL-008 Smarter purchase rule milestone 2026-10-28 16:16:52 +01:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Tirsvad-Udemy-100-days-of-code/048-the-coockie-factory-new#45