AttributeError: 'int' object has no attribute 'lower'
I downloaded the demo and tried coding with Python but I don't know why I can't place blocks
-
I will run some Python code and get back to you. Great to see some Python AZNB coding going on! We must stick together!
*****
I think you just have the parameters in the incorrect order.
Try:
agent.place("back",1) instead of agent.place(1,"back")
If you want the agent to place each time in the loop, remember to indent that command, so it is part of the looping.
Let me know how it goes! We are planning a Python get together this summer!
0 -
Sorry for the late reply but it worked, thanks! I was sticking to the tutorial where they were showing the use of agent.place(1,"back") but I guess thats some erratum.
0 -
Oh dear, is that i the reference doc still? I will try and find it if it is!
****************** Andrew Mulholland ****************************
I'm having trouble finding that tutorial, if it is still live somewhere... can you help me locate it, please?
In any event, glad to help! We coders must stick together! I'm looking forward to a Python get-together this summer! Stay tuned!
0
Please sign in to leave a comment.
Comments
3 comments