Quote:
Originally written by Snuff ling kin: Try incrementally checking it.
good = false;
good = char_on_spot(19,36);
if (good = false) good = (char_on_spot(20,37));
if (good = false) good = (char_on_spot(20,37));
if (good = false) good = (char_on_spot(20,37));
if (good = true) {
// on mat
Etc.
It works like this.
Good is false.
Good is whatever char_on_spot returns (i.e. true if char there, false otherwise).
Then, if good is still false, it sets good to whether char is on the next spot. And again and again until it's tried all the spots. Then you check good, see if it's true, if it is, a char is on any of the spots.