712 B
712 B
Hints
1. Define if Pac-Man can eat a ghost
- The function must return a boolean value.
- You can use the logical operator
and
to combine the arguments for a result.
2. Define if Pac-Man scores
- The function must return a boolean value.
- You can use the boolean operator
or
to combine the arguments for a result.
3. Define if Pac-Man loses
- The function must return a boolean value.
- You can use the boolean operators
and
andnot
to combine the arguments for a result.
4. Define if Pac-Man wins
- The function must return a boolean value.
- You can use the boolean operators
and
andnot
to combine the arguments and the results of one of the previously implemented functions.