"XXXXXXXXXXXXXXXXX XXX X X XXXXX X XXX X X X X XXX X X XXX X XXX X XXX X XXXX XXXXXXXXXXXXXXXXXX"->Str2
Repeat K=21 or A=C and B=D
If C≥E-2 and C≤E+2 or D≥F-2 and D≤F+2
Disp "YOU WIN"
I was trying to make it so that when you press the Y= button, it drops a bomb, or the letter B, on the screen. Then if the AI piece gets within 2 spaces of the bomb through either the x or y coordinates, then you win. Right now it just ends the game when it's close to the first value entered into the bomb coordinates.
Also, I was wondering how to delete the AI piece (*) after it moves? So there isn't a trail of *'s on the map.