Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
You can pop/append though.
For regular python what you are doing is correct though.
https://steamcommunity.com/sharedfiles/filedetails/?id=3261475328
Example
*** IMPORTANT NOTE ***
Shadowing does not work as it does in normal python so attempt to not have conflicting variable names
The above will init an array with the info that would be useful. It is then possible to go through it to grab the info you want, and see that you are working with sunflowers creating a sub array with the positions of the max measured petals would be very helpful
Example:
max_pos = i
# Now Let us move to the position and harvest and replant
cx, cy = get_pos(max_pos)
move_to(cx, cy)
harvest()
plant(Entities.Sunflower)[/code]
The above are just examples and are not fully implemented or bug free but should give a good show of how to go about using the given data structures to solve this problem.
By all means though attempt to do it in any way you see fit as these are just suggestions.
I would go with bugged, it is likely the same issue that is causing shadowing to not work 100% of the time.
So it was shadowing, I would call that a bug as insert should be a method of a class and should not be overridden by a variable name. That means it is somehow getting into the global space.
Overall weird behavior. Cool thing you figured it out though.