From d3d786bbc0b01ed6fb437c3e066f3bc48bbdef05 Mon Sep 17 00:00:00 2001 From: Patricia Aas Date: Tue, 19 Oct 2021 09:48:24 +0200 Subject: [PATCH] Update README.md --- exercises/25/pacman_ai/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/exercises/25/pacman_ai/README.md b/exercises/25/pacman_ai/README.md index e52974d..4331a85 100644 --- a/exercises/25/pacman_ai/README.md +++ b/exercises/25/pacman_ai/README.md @@ -58,6 +58,12 @@ and return true if the first parameter is closer from PacMan than the second. Implement [PacManAI::isValidMove](../../../lib/PacManAI.cpp) and test your implementation with the test in [testPacmanAI.cpp](../../../test/testPacmanAI.cpp) called _"Is valid move"_ +To run the tests through CMake change the last line in test/CMakeLists.txt to: + +``` +add_test(NAME pacman_tests COMMAND pacman_tests) +``` + ```cpp bool PacManAI::isValidMove(const Move & move) { return false;