MIL-006: Purchase strategy improvement #40

Merged
Tirsvad merged 2 commits from mil-006-purchase-strategy into main 2026-10-28 10:30:44 +01:00
Owner

The bot buys at most one product per store visit, visits the store every second and buys affordable upgrades. In the 300 second Docker run the CPS rose from 16.6 to 29 and failed purchases fell from about 40 percent to 1 of 49. README, screenshots and the wiki in English, Danish and Bahasa Malaysia show the new result.

Closes #35
Closes #36
Closes #37
Closes #38
Closes #39

The bot buys at most one product per store visit, visits the store every second and buys affordable upgrades. In the 300 second Docker run the CPS rose from 16.6 to 29 and failed purchases fell from about 40 percent to 1 of 49. README, screenshots and the wiki in English, Danish and Bahasa Malaysia show the new result. Closes #35 Closes #36 Closes #37 Closes #38 Closes #39
Tirsvad added 2 commits 2026-10-28 10:30:42 +01:00
The game updates the price and owned text at once but the affordable
flag only at its next redraw, so a second purchase in the same visit
used a stale flag. Buying at most one product per visit cut the failed
purchases from about 40 percent to 1 of 49 and raised the CPS from 16.6
to 29 in the 300 second Docker run. README, screenshots and the wiki in
en, da and ms show the new result.

Task: MIL-006#1
Task: MIL-006#2
Task: MIL-006#3
Task: MIL-006#4
Task: MIL-006#5
Tirsvad merged commit ad05d336f4 into main 2026-10-28 10:30:44 +01:00
Sign in to join this conversation.
No Reviewers
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#40