larryboylover92
#7386027Sunday, April 12, 2009 3:38 AM GMT

I just looked it up on sun. I found two things: Niether work how I want. obj.wait(); and something random like: try { wait(); } check(InterruptedEvent e) {}
MicroUser
#7387112Sunday, April 12, 2009 4:07 AM GMT

[ Content Deleted ]
zoo1997
#7387908Sunday, April 12, 2009 4:34 AM GMT

larry, try this http://java.sun.com/docs/books/tutorial/essential/concurrency/sleep.html
fuggles
#7400257Sunday, April 12, 2009 3:07 PM GMT

Don't waste your time learning binary. It is pointless. I was reading an article about it. Even if you do know it, you can't even make a simple Window with it. There are only a few people in the world who completely know it and they say you can't make a window with it.
worldwaffle
#7411544Sunday, April 12, 2009 7:10 PM GMT

Binary is easy! 00101 = 5 :P
larryboylover92
#7505497Wednesday, April 15, 2009 12:11 AM GMT

Thanks, zoo!
worldwaffle
#7505788Wednesday, April 15, 2009 12:16 AM GMT

sleep()? >_< could've know that....
darkmage0252
#7507411Wednesday, April 15, 2009 12:43 AM GMT

what do i download for robocode
worldwaffle
#7507666Wednesday, April 15, 2009 12:47 AM GMT

the .jar file
Meelo
#7507881Wednesday, April 15, 2009 12:50 AM GMT

Yesh! I made a 1337 bot in robocode. Well... half of one anyways. It's Robot class does nothing at all! But other classes do the work and send data back to the bot. It chooses between (currently 2 types of targetting, which are seperated from the rest of everything and interchangable) targetting methods based on damage per shot.
Meelo
#7508043Wednesday, April 15, 2009 12:53 AM GMT

"It chooses between (currently 2 types of targetting, which are seperated from the rest of everything and interchangable) targetting methods based on damage per shot." Forgot to mention that it also makes virtual bullets in order to asses this
worldwaffle
#7508301Wednesday, April 15, 2009 12:57 AM GMT

...I thought I was ok at it, you make me feel dumb xD. I edited the corner bot to move to another corner if it gets hit... yay?
larryboylover92
#7509644Wednesday, April 15, 2009 1:17 AM GMT

ROFL Meelo, that's an UBER misspelling of assess.
worldwaffle
#7509735Wednesday, April 15, 2009 1:18 AM GMT

how'd it get through the word filters xD
Meelo
#7509794Wednesday, April 15, 2009 1:19 AM GMT

O_O ..|| ..V The wise bearded one says: "Oopsies"
worldwaffle
#7509844Wednesday, April 15, 2009 1:20 AM GMT

lol
larryboylover92
#7509942Wednesday, April 15, 2009 1:22 AM GMT

wise bearded man is right. So meelo... ANTIGRAV?
Meelo
#7510000Wednesday, April 15, 2009 1:23 AM GMT

Here's all the code in the bot. package haxbot; import robocode.*; //import java.awt.Color; /** * Haxxor - a robot by (your name here) */ public class Haxxor extends AdvancedRobot { /** * run: Haxxor's default behavior */ protected Firer MainWeapons = new Firer(this); public Point Position = new Point(); public Data Battle = new Data(this); public double Height = 1000000; public double Width = 1000000; public void run() { Height = getBattleFieldHeight(); Width = getBattleFieldWidth(); out.println("Running!"); turnRadarRight(360); // After trying out your robot, try uncommenting the import at the top, // and the next line: //setColors(Color.red,Color.blue,Color.green); while(true) { MainWeapons.run(); Battle.run(); //execute(); scan(); } } /** * onScannedRobot: What to do when you see another robot */ public void onScannedRobot(ScannedRobotEvent e) { Battle.ScannedBot(e); } /** * onHitByBullet: What to do when you're hit by a bullet */ public void onHitByBullet(HitByBulletEvent e) { Battle.HitByBullet(e); } public void onStatus(StatusEvent e){ Position.x = e.getStatus().getX(); Position.y = e.getStatus().getY(); } public void onPaint(java.awt.Graphics2D g) { long t = getTime(); MainWeapons.Draw(g,t); Battle.Draw(g,t); } public void onRobotDeath(RobotDeathEvent e){ Battle.getBot(e.getName()).alive = false; } public void onBulletMissed(BulletMissedEvent e){ WeaponsHelper Shooter = MainWeapons.getFirerOfBullet(e.getBullet()); if(Shooter == null) return; Shooter.addMiss(); } public void onBulletHit(BulletHitEvent e){ WeaponsHelper Shooter = MainWeapons.getFirerOfBullet(e.getBullet()); if(Shooter == null) return; Shooter.addHit(Convert.getDamageFromBullet(e.getBullet().getPower())); } } What's that you ask? What are all those functions I've never seen? Spread over 8 other .java files
worldwaffle
#7510003Wednesday, April 15, 2009 1:23 AM GMT

larry, whats your robot do? more on robocode: anyone want to set up a league? :P
Meelo
#7510106Wednesday, April 15, 2009 1:24 AM GMT

What's a league and... "So meelo... ANTIGRAV?" My new bot has no movement. Yet. I'm going to add a Guess Factor gun and then do: Anti-Grav movement Oscillation "Meelo's Hybrid"
larryboylover92
#7510241Wednesday, April 15, 2009 1:26 AM GMT

Woah. Post #97 on thread.
worldwaffle
#7510375Wednesday, April 15, 2009 1:28 AM GMT

when I mean league I mean set up a site and battle eachother's robots. I'm gonna do something like that. It will determing if it is getting to much and switch to the next strategy :P
Meelo
#7510399Wednesday, April 15, 2009 1:29 AM GMT

O_o My bot has a decent chance of killing walls without movement.
worldwaffle
#7510439Wednesday, April 15, 2009 1:30 AM GMT

...then it will switch to the ram strategy :P
larryboylover92
#7510483Wednesday, April 15, 2009 1:30 AM GMT

Ooops. Miscount, That was #95. This is most likely 98. My bot is like the default "Walls", but it pwns more. 90% against all other bots.