cameroncondry / cbc-kitten-scientists

Add-on for the wonderful incremental browser game: http://kittensgame.com/web/
MIT License
114 stars 94 forks source link

Leviathan trade execution is severely suboptimal #333

Open masonwheeler opened 2 years ago

masonwheeler commented 2 years ago

Due to the way trading affects their departure schedule, the optimal strategy for trading with Leviathans is to wait to make the first trade until you max out Unobtainium. The script does not take this into account, eagerly making the first trade as soon as possible, thereby squandering a great deal of trading potential.

The rule should be, if ((the leviathans' days remaining > the point it will be reduced to after the first trade) && (unobtainium quantity < full)) do not trade;

rherban commented 2 years ago

I agree that this is suboptimal and should be updated, but it can be mitigated by unchecking the limited flag.

But there is a slightly-related issue where (IMO) it should trade just before the leviathans disappear, regardless of how much you have saved up.