Esempio n. 1
0
	bool isEnd(Map &map) const{
		for(size_t i=0; i<front->length(); ++i){
			if (map.mark(0, front->at(i)) && map.mark(1, front->at(i))){
				return true;
			}
		}
		return false;
	}
Esempio n. 2
0
	Coord meetCell(const Map &map) const{
		for(size_t i=0; i<front->length(); ++i){
			const Coord &c = front->at(i);
			if (map.mark(0, c) && map.mark(1, c)){
				return c;
			}
		}
		return Coord(0, 0);
	}