Thread:User talk:Gertjan96/Simple robot - looking for improvements/reply

From RoboWiki
(Difference between revisions)
Jump to: navigation, search
 
m (Aargh formatting)
 
Line 1: Line 1:
 
A few things I suggest changing:
 
A few things I suggest changing:
 
# Make the forward and back based on a single variable, which you change the value of once every so often (say once every 20 ticks). You can then also change direction for things like hitting a wall, which will help you keep moving.
 
# Make the forward and back based on a single variable, which you change the value of once every so often (say once every 20 ticks). You can then also change direction for things like hitting a wall, which will help you keep moving.
 
 
# Try using a lower bullet power if they are far away. Also, if they are ''really'' close, you can fire even if they aren't moving because they won't move enough in time.
 
# Try using a lower bullet power if they are far away. Also, if they are ''really'' close, you can fire even if they aren't moving because they won't move enough in time.
 
 
# Try using a proper radar lock instead of just spinning - check out [[One_on_One_Radar#The_Infinity_Lock]].
 
# Try using a proper radar lock instead of just spinning - check out [[One_on_One_Radar#The_Infinity_Lock]].
 
 
# I don't see anything which is actually turning the gun towards the enemy. Take a look at [[Linear_Targeting#Example_of_Noniterative_Linear_Targeting]] for some code which should give you a major edge against any of the sample bots.
 
# I don't see anything which is actually turning the gun towards the enemy. Take a look at [[Linear_Targeting#Example_of_Noniterative_Linear_Targeting]] for some code which should give you a major edge against any of the sample bots.
  
 
It's a pity you don't have a few weeks to work on this, because then you could set your sights above just beating the sample bots =)
 
It's a pity you don't have a few weeks to work on this, because then you could set your sights above just beating the sample bots =)

Latest revision as of 19:59, 17 June 2014

A few things I suggest changing:

  1. Make the forward and back based on a single variable, which you change the value of once every so often (say once every 20 ticks). You can then also change direction for things like hitting a wall, which will help you keep moving.
  2. Try using a lower bullet power if they are far away. Also, if they are really close, you can fire even if they aren't moving because they won't move enough in time.
  3. Try using a proper radar lock instead of just spinning - check out One_on_One_Radar#The_Infinity_Lock.
  4. I don't see anything which is actually turning the gun towards the enemy. Take a look at Linear_Targeting#Example_of_Noniterative_Linear_Targeting for some code which should give you a major edge against any of the sample bots.

It's a pity you don't have a few weeks to work on this, because then you could set your sights above just beating the sample bots =)

Personal tools