Co oznacza błąd "The constructor Gracz(int, int) is undefined" ? Nazwy klas sie zgadzają...
public class Gracz{
int damage;
int health;
String bron;
}
public class ogół {
public static void main(String[] args) {
Gracz gracz1 = new Gracz(25, 400, "scar");
}
}
Musisz zdefiniować konstruktor, który przyjmuje 2 inty i Stringa. Jeśli nie zdefiniowałeś konstruktora, to masz niejawny - bezparametrowy.
public class Gracz{
int damage;
int health;
String bron;
public Gracz(int damage, int health, String bron) {
this.damage = damage;
this.health = health;
this.bron = bron;
}
}