pacman/exercises/21/is_intersection
2021-10-19 08:05:56 +02:00
..
README.md Update README.md 2021-10-19 08:05:56 +02:00

< Back

Exercise:

Exercise: Create isIntersection function

  1. In Board.cpp create an isIntersection function that returns a bool and takes a GridPosition as a parameter
  2. Create an array of GridPositions around the parameter pos and array of bool and then loop through the postitions and check "isWalkableForPacMan" and store the results in the array of bools.
  3. Return true if there are at least three different walkable paths