[Home]Uba

Robo Home | Changes | Preferences | AllPages

Bot Name

Uba

Author

Bayen

Extends

AdvancedRobot

What's special about it?

I'll get back to you on this once there's something special about it.

Great, I want to try it. Where can I download it?

Uba Micro - http://www.robocoderepository.com/BotDetail.jsp?id=2824

Uba - UbaSource

How competitive is it?

Not very -- yet!

How does it move?

It sidles closer to the enemy, but switches direction completely randomly. This means that GuessFactors guns don't have any basis to use against it! BWAHAHA! It isn't as good as wavesurfing, but it is this simple:
if (getDistanceRemaining() == 0) {FORWARD =-FORWARD;
setAhead(185 * Math.random() * FORWARD);}
setTurnRightRadians(e.getBearingRadians()
+Math.PI/2-0.5236*FORWARD
*(e.getDistance()>200?1:-1));
It is almost the same as MicroAspid's, except I put in the randominizing.

How does it fire?

GF and linear

How does it dodge bullets?

Well, it moves. And it moves randomly to throw off really complicated guns. Ha ha.

How does the melee strategy differ from one-on-one strategy?

The movement is different

How does it select a target to attack/avoid in melee?

The enemy with lower energy

What does it save between rounds and matches?

GF stuff.

Where did you get the name?

It is a name I came up with in 4th or 5th grade and I still like it.

Can I use your code?

Yes! I encourage it! But please give credit to me if you copy & paste.

What's next for your robot?

fixing melee movement! It is REALLY BAD! The samples even kill it!

Does it have any WhiteWhales?

not yet

What other robot(s) is it based on?

CrazyTracker


Comments, questions, feedback:

Is there a wiki page that has a tutorial on how to use JAVA to save information between matches? --Bayen

Martin posted some code for this purpose under Ugluk/Persistence. --wcsv

I get an error every melee battle I do with Uba. Could someone find out what is wrong? My source code is at UbaSource. --Bayen

Could you copy/paste the error message from the console? That would make it a lot easier to diagnose. -- Voidious

It's okay, I fixed the error. It was from not deleting the custom event! --Bayen

20060217: This will be a quite irritating mini in OneOnOne, because it fights close. In melee it has no chance, because it will lock the radar and forget all other enemies. You are using both radians and degrees, better is to use one of them and stick to it. -- GrubbmGait

The bot really isn't for melee, I just threw in the melee options in case my little brother throws my bot into a melee battle on his computer ;) However, I am having problems with my VG array! It always shoots with the GuessFactor gun and never with the Linear gun, even when the LT gun is better. For example, I know that the LT gun hits Walls more often than the GF gun, but Uba continues to use the GF. WHY!?!?!?!

This looks like a problem:

                if(type == "gf" && getOthers() == 1)
                t.gfhit++;
                if(type == "lt" && getOthers() == 1)
                t.lthit++;
You should use type.equals("gf") instead, because what you have there doesn't work the way you want it to. (The "==" operator in Java actually tests that two object references are pointing to the exact same object; only numbers (and maybe characters?) work with "==" for the actual equality of values.) -- Voidious

Small remark: when you fire with LT, you printout GF ;-) -- GrubbmGait

	if(getOthers() == 1 && t.gfhit >= t.lthit){
	setTurnGunRightRadians(Utils.normalRelativeAngle(
		enemyAbsoluteBearing - getGunHeadingRadians()
		+ wave.wBearingDirection * (mostVisited - MIDDLE_FACTOR)));		
===> fire GF    out.println("GF");
	}
	if(getOthers() > 1 || t.gfhit < t.lthit){
	setTurnGunRightRadians(Utils.normalRelativeAngle(theta
		                        - getGunHeadingRadians()));
===> fire LT	out.println("GF");
	}

I know, I just can't figure out why!! Also: I tried your idea, Voidious, but it didn't help. --Bayen

Well, no matter what else you did, your hit counts would never increment if you didn't make the change I mentioned =) -- Voidious


Robo Home | Changes | Preferences | AllPages
Edit text of this page | View other revisions
Last edited May 4, 2006 22:15 EST by GrubbmGait (diff)
Search: