![]() ![]() Maybe someone here can tell me, what am I doing wrong here. This is your last lesson, and to round things out, we come back to where we started in Lesson 2, moving your robot. ![]() ![]() Well, I put in code and it chages the direction with one major problem - it collides with the wall and only after that it seems to understand that it's time to go the other way. At any point when my tank is closer to the wall than wall_avoid_distance it should change it's direction. I came to an idea to calculate my x,y position and compare it to a double wall_avoid_distance. The problem that I have now is that it collides with the walls all the time and I'm trying to find some kind of solution to solve it. ![]() It shoots the enemy using head on targeting and moves around it in a circular way. At the moment I'm building a robot to participate in our school competition, and it is evolving quite nicely. Hi, I'm relatively new to java and robocode as well, but slowly I am getting the hang of it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |