1.2 KiB
1.2 KiB
Hints
General
- Don't worry about how the arguments are derived, just focus on combining the arguments to return the intended result.
1. Define if pac-man can eat a ghost
- The function must return a boolean value.
- You can use the boolean operator
and/2
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/2
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/2
andnot/1
to combine the arguments for a result.