diff --git a/exercises/25/pacman_ai/README.md b/exercises/25/pacman_ai/README.md index 3a72bfe..4cb2b7c 100644 --- a/exercises/25/pacman_ai/README.md +++ b/exercises/25/pacman_ai/README.md @@ -44,6 +44,15 @@ Use the [std::sort](https://en.cppreference.com/w/cpp/algorithm/sort) function t + +
+ Hint 3 + +[std::sort](https://en.cppreference.com/w/cpp/algorithm/sort) third parameter should be a lambda taking 2 `GridPosition` as parameter, +and return true if the first parameter is closer from PacMan than the second. + +
+ ### Part 2 Implement [PacManAI::isValidMove](../../../lib/PacManAI.cpp) and test your implementation with the test @@ -68,11 +77,11 @@ in [testPacmanAI.cpp](../../../test/testPacmanAI.cpp) called _"Is optimal direct ```cpp Direction PacManAI::optimalDirection(const std::array & moves) { return Direction::NONE; -} +} ```
Hint
- +