This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Pages

Monday, January 24, 2011

1st Leg of Robocode Competition

Hey there.. today was our much awaited first leg of robocode competition of our class. Hmm.. it's just to showcase.. not showoff! (LOL) our somewhat "pinaghirapang i-code" haha.. That was really funny since we knew that it was hard to create your very own robocode, like do it from scratch without imitating or editing some codes.. may it be predefined or widely given by other people.

So let's get with the whole event. We started at around 12:30 pm at our laboratory class. We have to pass all our robot's jar file to our classmate Ms. Carols (haha) then to be put to our teacher's computer. The first part was a One-on-One Competition. We have ready match combinations already since our teacher has prepared much for it. We only have 1 round in the elimination phase. It's a knock out game so winning there advances you with the next elimination round. Gladly.. my opponent wasn't able to submit the required file -- robocode in a jar file. Hmm.. I was winner by default. I was happy of course `coz I knew I won't win since I can't put much technique with my own robocode urrggh for that. And so I advanced to the next phase. Hmm.. I have to fight our beadle.. urgh forget about her.. bitches thing irritates me. And so she wins.. blah blah blah.. My robot is not really for a 1-on-1 match so I knew I will lose.. but not to her!!!!!!!! Damn that creature. And so... my opponent wins because she was so aggressive.. she fires like a machine gun.. yeah yeah like A NAGGER WOMAN WHO WON'T LET YOU BUTT IN.. she seems to determine my area of movement then tracks me then do all those firing towards me. Her radar moves so fast. Don't know how she did that but that's it.. I didn't move with the next round.

Hmm.. that's about my own round.. The funniest round was with our super gay classmate and this guy who prepared much of his robot. Haha guess who won?? It's Jude!!! Our super gay classmate.. His robot got a very funny name I mean package name.. it's LICKITUNG!! haha that's in Pokemon.. Yeah.. his style was to move at the walls and avoid attacks of the opponent.. then after some area.. fire at will.. Then he won.. He advances with the next level and fought with some other opponents.. He lost.. sadly.. :( but anyways.. let's proceed.. So there were 3 rounds for the final phase. And my bitch opponent and Ms. Carols fought there. Yeah and bitch won.

So here's how she won:
1. Fires every time she can - like a MACHINE GUN! Trust me!
2. FIRE AT WILL!
3. She determines your area of movement. (If you're movement is only back and ahead.. you're so dead to her.)
4. Then put's you no choice of movement rather than ahead and back.. then seems like to dance over you.. MOVES IN ARC some like 100 distance away from you..
5. Doesn't lose that energy easily. I mean she won't get disable that fast though we know she got so little energy left.
6. But when her energy is so low she fires only at the minimum amount.
7. And additional.. her radar moves so quick.. so probably she extends an AdvanceRobot

Hmm.. Then the next activity was the Royal Rumble. It's where all our Robots meet and fight all together. We were given 3 rounds for that, as that was our request since we saw that it was fun watching! Okay so Winning  has many elements to be considered. It's just like a criteria for winning. Hmm they're ramming bonus, survival bonus.. urgh just check it robocode's wiki. And so the game started. We were so laughing since a lot of our robot's were dying.. haha. I watched my robot.. I looked for it and watch my eye on it.. I think that's bad.. Coz I must have watch the behaviors of other robots. But I wanted to see how my robot react towards the attack of a more intelligent robots - my classmate's creation. Hmm.. not bad I guess. I ranked 6th over all. I can see my robot still alive even with less than 10 robots in the field. The winner of the Royal Rumble was this silent but deadly type robot - namely Ghost. We didn't notice him to be honest! But it did won 2 out of 3. Yeah and its owner was absent that very day haha. So lucky.

Note:
1-on-1 Competition is where you can shine! You can put all strategies you think.. techniques.. etc.

On the other hand, Royal Rumble was actually luck-dependent game. If your location at game starts is at the worst place.. say: You were in the middle of two or more robots. Moving in whatever direction will decrease your energy because of constant hit you get from the robots around you! So this gives you a constant winning or constant losing.

So the answer will be is that you make a dual personality robot. It means it behaves differently when it is in a group fight and another behavior with a 1-on-1 competition.

So goodluck! And this was our 1st leg of Robocode Competition. Not bad but.. uhmm.. a little bit sad.. I know I could have made a stronger one.. If I only devoted much time on it.. *sigh* Heads up for the next coding moments..

Sunday, January 16, 2011

RoboBot color updated

First and foremost I would want to change my robots color. So here's the code:

setColors(Color robotColor, Color gunColor, Color radarColor); //robot's body, gun, and radar
//sample code
and here are the available colors for our robocode's robots:

black, blue, cyan, darkGray, gray, green, lightGray, orange, pink, red, white and yellow


setColors(Color.red,Color.blue,Color.green);

But then I would want every aspect of my roboBot's parts to change its color.. and here it is..

public void run()
{
setBodyColor(Color.pink);
setGunColor(Color.black);
setRadarColor(Color.blue);
setBulletColor(Color.cyan);
setScanColor(Color.green);
.
.
.
}


Share photos on twitter with Twitpic
(You can never remove pink in my life haha)

Starting with Robocode

Another project in here.. Robocode...
Have you heard about it?? The famous line "Build the best - destroy the rest!"... It's actually coding or developing a tank or a robot tank I guess that you will send into the battle field with other robot tanks, probably a sample robot or your friends own robots too.. It's programming language is Java and I think there's another one but I'm not so familiar with it.. If you wanna check more about it just visit its site.. http://robocode.sourceforge.net/

Hmm.. this is our Individual project from our Software Engineering class. And I just have to start it right now or I won't have much time for it by next weeks... So first thing first.. I opened Robocode's editor and try to see its template.. and here it goes..

package LadyCid;
import robocode.*;
import java.awt.Color;

// API help : http://robocode.sourceforge.net/docs/robocode/robocode/Robot.html

/**
 * RoboBot_Ver1_00 - a robot by (your name here)
 */
public class RoboBot_Ver1_00 extends Robot
{
/**
* run: RoboBot_Ver1_00's default behavior
*/
public void run() {
// Initialization of the robot should be put here
    // After trying out your robot, try uncommenting the import at the top,
  // and the next line:
// Robot main loop
while(true) {
// Replace the next 4 lines with any behavior you would like
ahead(100);
turnGunRight(360);
back(100);
turnGunRight(360);
}
}

/**
* onScannedRobot: What to do when you see another robot
*/
public void onScannedRobot(ScannedRobotEvent e) {
// Replace the next line with any behavior you would like
fire(1);
}

/**
* onHitByBullet: What to do when you're hit by a bullet
*/
public void onHitByBullet(HitByBulletEvent e) {
// Replace the next line with any behavior you would like
back(10);
}
/**
* onHitWall: What to do when you hit a wall
*/
public void onHitWall(HitWallEvent e) {
// Replace the next line with any behavior you would like
back(20);
}
}

I didn't remove the comments for everyone's happiness (lol)..
I named the package by my initials "LadyCid" and named my very first robot as "RoboBot_Ver1_00"
I can't think of any name for now so for the mean time just version 1.00