#Battlebots

1 messages · Page 1 of 1 (latest)

upbeat nebula
#

I'm trying to make a autododge system for a bot that will be in an arena with 15 other bots. Bot can only travel up, down, left, or right. Bullets travel only travel up, down, left, or right. The bullets in the arena are stored in an array bullets. My problem is my current code causes the bot to keep jittering left and right and is not a smooth dodging system. Can anyone please help? I can send the full code if anyone needs but here is the method.

Here is the code for the method and its helper methods: https://sourceb.in/GB86OnjXAq

lost crystalBOT
#

This post has been reserved for your question.

Hey @upbeat nebula! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.