vielleicht kann mir ja jemand sagen, was an dem code nicht funktioniert:
class Ratezahl {
public long zZahl;
public int uGr=0,oGr=99,eZahl=45,versuch=0;
public Ratezahl() {
super();
}//eof public Ratezahl()
public void spiel(){
zZahl=meinRatezahl.zZahl();
while(eZahl!=zZahl){
versuch=meinRatezahl.versuch(versuch);
eZahl=meinRatezahl.eMaske(uGr,oGr,versuch,eZahl);
uGr=meinRatezahl.pruefe_uGr(zZahl,eZahl,uGr);
oGr=meinRatezahl.pruefe_oGr(zZahl,eZahl,oGr);
}//eof while(eZahl!=zZahl)
meinRatezahl.ende(zZahl,versuch);
}
public static void main(String[] args) {
Ratezahl meinRatezahl = new Ratezahl();
meinRatezahl.spiel();
}//eof public static void main(String[] args)
also die methoden, die noch angesprochen werden, kommen im quelltext noch... das prob ist, dass er meinRatezahl in der methode spiel nicht erkennt und ich weiß nich warum!!
vielen dank!