You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
457 B
C++
24 lines
457 B
C++
/*#include "utilsPathfind.hpp"
|
|
#include "RLGame.hpp"
|
|
#include <queue>
|
|
|
|
std::vector<Position> BacktraceBFS(std::)
|
|
|
|
std::vector<Position> utils::BFS(const Position& start, const Position& end)
|
|
{
|
|
std::queue<Position> frontier;
|
|
std::vector<Position> neighbors, explored;
|
|
Position current;
|
|
|
|
frontier.push(start);
|
|
explored.push_back(start);
|
|
|
|
while(!frontier.empty())
|
|
{
|
|
current = frontier.front();
|
|
frontier.pop();
|
|
|
|
if(current == end)
|
|
return
|
|
}
|
|
}*/ |