Hour of Code: AI for good
When I reach the part where I need to program the bot to destroy fry plants forward, it keeps on failing. The code I put in is as follows: On start: While hazard remains: if agent detects dry bush forward: agent destroy forward. I tried this and saw it is the answer but it keeps failing. also tried to skip, but when it tells me to press start because the answer is written, it fails aswell.
-
is this what you did?
If so: remember things like plants, saplings, slabs those are not opaque blocks this looks for opaque blocksI do not fully understand what you did. would you mind showing me a code snippet?
0 -
Hi there Stiaan Van Der Hyde!
Could you please let us know what code you're using to do this part of the project? Thank you!
0
Please sign in to leave a comment.
Comments
2 comments