Installer Steam
Logg inn
|
språk
简体中文 (forenklet kinesisk)
繁體中文 (tradisjonell kinesisk)
日本語 (japansk)
한국어 (koreansk)
ไทย (thai)
Български (bulgarsk)
Čeština (tsjekkisk)
Dansk (dansk)
Deutsch (tysk)
English (engelsk)
Español – España (spansk – Spania)
Español – Latinoamérica (spansk – Latin-Amerika)
Ελληνικά (gresk)
Français (fransk)
Italiano (italiensk)
Bahasa Indonesia (indonesisk)
Magyar (ungarsk)
Nederlands (nederlandsk)
Polski (polsk)
Português (portugisisk – Portugal)
Português – Brasil (portugisisk – Brasil)
Română (rumensk)
Русский (russisk)
Suomi (finsk)
Svenska (svensk)
Türkçe (tyrkisk)
Tiếng Việt (vietnamesisk)
Українська (ukrainsk)
Rapporter et problem med oversettelse
when you get dictionaries you can optimize to only visit tiles we are waiting to be grown
i only optimized pumpkins after i unlocked fertilizer
with a watered tile + fertilizer they grow instantly so you can immediately re-plant if it dies and move on serially without any need to backtrack
* There's no point in comparing the result of can_harvest() with true (can_harvest() == True) just have the call to can_harvest there, it already returns a boolean.
* If the drone reaches a tile that contains a not grown pumpkin you harvest it, that doesn't make sense.
* You then buy seeds until you have as many as there are tiles on the farm, why not just do this before the loop where you traverse the farm, then you should never end up with a random amount of seeds after a run of the function.
* After moving across the entire field you check that the grown_plots variable is equal to the total_plots variable, this will never be true if you hit the "True" case of your if statement only some of the times during the traversal of the farm, the grown_plots variable will just continue to grow, you might want to reset it at the start of the function.
I wouldn't call them bugs (except one), I've ran the code and it works as expected without any bugs.
Sure, it's redundant.
Agree, it's not really necessary, but maybe he hasn't cleared his field and maybe he is harvesting if there was something else underneath from the previous plantation.
I found it strange as well, but even if he buys the amount of tiles in seeds before the run he has to buy more if any pumpkin doesn't grow to full. I would just buy a seed before each plant().
This is the only bug I think, that I missed in my previous review. Indeed the grown_plots needs to be reset after the condition is met. HOWEVER in-game this is not the case, it seems to be resetting on it's own? I can't figure it out but I tested it and and it works, the grown_plots is somehow reset on every run.
You've made good points, but your attitude wasn't really all that good towards a newbie coder.
EDIT: I guess the line grown_plots = grown_plots + 1 doesn't use the global variable and instead makes a new one for each cycle