Hallo ich wollte das abkürzen :
if ((x+1 == tx ^ x == tx ^ x-1 == tx) && (y+1 == ty ^ y == ty ^ y-1 == ty)){this.geheZufällig();};
in das :
if ((x^++x^--x)==tx && (y^++y^--y)==ty){this.geheZufällig();};
Fehler im Code gibt es nicht jedoch funktioniert der untere nicht!
if ((x+1 == tx ^ x == tx ^ x-1 == tx) && (y+1 == ty ^ y == ty ^ y-1 == ty)){this.geheZufällig();};
in das :
if ((x^++x^--x)==tx && (y^++y^--y)==ty){this.geheZufällig();};
Fehler im Code gibt es nicht jedoch funktioniert der untere nicht!