class Warrior extends Competitor
{	public Warrior(String nm)
	{	super(nm);
	}

	public void fight(Competitor other) 
	{	if (this.getHealth() > 0 && other.getHealth() > 0)
		{	System.out.println(this.getName() + " slashes " + other.getName() + " with his mighty warrior's sword!");
			int blow = gen.nextInt(this.getHealth());
			other.decHealth(blow);
}	}	}