Update README.md
This commit is contained in:
parent
d4feab4c63
commit
72f14bcc96
1 changed files with 8 additions and 1 deletions
|
@ -65,12 +65,19 @@ bool PacManAI::isValidMove(const Move & move) {
|
||||||
```
|
```
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Hint</summary>
|
<summary>Hint 1</summary>
|
||||||
|
|
||||||
Use [isWalkableForPacMan](../../../lib/Board.cpp) to make sure PacMan is not walking in ways that are not legal
|
Use [isWalkableForPacMan](../../../lib/Board.cpp) to make sure PacMan is not walking in ways that are not legal
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Hint 2</summary>
|
||||||
|
|
||||||
|
Use [oppositeDirection](../../../lib/include/Direction.hpp) to make sure PacMan doesn't get stuck toggeling back and forth
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
### Part 3
|
### Part 3
|
||||||
|
|
||||||
Implement [PacManAI::optimalDirection](../../../lib/PacManAI.cpp) and test your implementation with the test
|
Implement [PacManAI::optimalDirection](../../../lib/PacManAI.cpp) and test your implementation with the test
|
||||||
|
|
Loading…
Reference in a new issue