Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Node& Astar::createNode(board_t& board)
- {
- Node* newNode = new Node();
- newNode->board = board;
- newNode->cost = Manhattan::sum(board, this->goal);
- std::cout << &newNode << std::endl;
- return *newNode;
- }
- void Astar::startNode(void)
- {
- Node& currentNode = this->createNode(this->board);
- currentNode.cost = Manhattan::sum(this->board, this->goal);
- std::cout << ¤tNode << std::endl;
- /*
- this->close.push_front(currentNode);
- std::cout << &this->close.begin() << std::endl;
- */
- }
Add Comment
Please, Sign In to add comment