
import java.awt.*;


public class JhornBug extends Bug
        {

	    public JhornBug(){  }

        public int your_move(int [] neighborhood)
            {return (int) (Math.random()*9)+1;}

        public String getName()
             {return "PooBuckets";}

        public void paint(Graphics g)
             {
			   g.setColor(Color.green);
			   g.fillOval(0,0,20,40);
               g.setColor(Color.red);
               g.drawOval(10,10,10,10);
               g.setColor(Color.black);
		   }

        public String epitaph()
           {
			   return("Dead men tell no tales...");
		   }

        public void eat_this(int mum_mum) {};

        public void lose_this(int health_points){};

        public boolean my_want_to_reproduce(int cost)
            {
				return true;
			}

        }


        //  public int your_move(int [] neighborhood);
        //
        //     Returns an int 1 to 9 indicating where you
        //     want to move, using the Moore neighborhood:
        //
        //          1 2 3
        //          4 5 6
        //          7 8 9
        //
        //     Thus "move 5" means stay in place!
        //
        //     The input is an array of 10 integers, with
        //     "neighborhood[i]" giving the number of bugs in cell i.
        //
        //     neighborhood[0] gives your bug's current position in the
        //     vertical stack on the current cell (number 5 in the Von
        //     Neumann neighborhood).  Thus "neighborhood[0] = 1" means
        //     you are on the bottom, while a value of 4 means there are
        //     three underneath you.
        //
        //     The bug on the bottom always to eat 5 units of energy
        //     every turn.  The next bug up gets 4, and so on.  The 6th
        //     bug up gets nothing.
        //
        //     Every bug on top of you increases your chances of getting
        //     squashed by 10%.  Thus with no bugs on you there is a 0%
        //     chance of getting squashed.  With two bugs above there is a
        //     20% chance EACH TURN.  With 10 bugs on top, well ...
        //     Once squashed you are dead and gone.  You can be squashed
        //     at any position in the stack (except of course on top).
        //     You don't have to be on the bttom to get squashed.
        //
        //     It costs you 2 energy units to move, and 1 to sit still,
        //     EVERY TURN!
        //
        //

        //  public String getName();
        //
        //     Return any string <= 20 characters.

        //  public void paint(Graphics g, int x, int y)
        //
        //     Paint yourself, within a 40 by 40 pixel square, with upper
        //     left coordinates x,y.  Stay within the square x to x+40, and
        //     y to y+40, or you won't play!  Also, you must get your initials
        //     or first name in there somewhere, and in a readable form!  (This
        //     will greatly help us figure out who is winning...

        //  public String epitath();
        //
        //     You have been squashed.  Any last words, return them as a
        //     String < 81 characters, and the BugWorld will print them somewhere
        //     (probably System console window).
        //
        //
        //  public void eat_this(int mum_mum);
        //
        //     The BugWorld has determined that you get to eat "mum_mum" amount of
        //     of food.  Keep track of how much energy/food/health points you have,
        //     if you want to!   Should help you decide what to do next...
        //
        //  public void lose_this(int health_points);
        //
        //    This is the amount that the BugWorld is subtracting from your current
        //    health.
        //
        //  public boolean want_to_reproduce(int cost);
        //
        //    Do you want to reproduce now?  True or false...  "cost" is the current
        //    cost of reproduction.  "cost" points will be subtracted from your health.
        //
        //  public Bug reproduce(int cost);
        //
        //    Return a clone of yourself.  Note that this will cost you "cost" health
        //    points.
        //





