28 lines
1.2 KiB
Markdown
28 lines
1.2 KiB
Markdown
# 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][boolean] value.
|
|
- You can use the [boolean][boolean] operator [`and/2`][boolean-function] to combine the arguments for a result.
|
|
|
|
## 2. Define if pac-man scores
|
|
|
|
- The function must return a [boolean][boolean] value.
|
|
- You can use the [boolean][boolean] operator [`or/2`][boolean-function] to combine the arguments for a result.
|
|
|
|
## 3. Define if pac-man loses
|
|
|
|
- The function must return a [boolean][boolean] value.
|
|
- You can use the [boolean][boolean] operators [`and/2`][boolean-function] and [`not/1`][boolean-function] to combine the arguments for a result.
|
|
|
|
## 4. Define if pac-man wins
|
|
|
|
- The function must return a [boolean][boolean] value.
|
|
- You can use the [boolean][boolean] operators [`and/2`][boolean-function] and [`not/1`][boolean-function] to combine the arguments and results of one of the previously implemented functions.
|
|
|
|
[boolean]: https://elixir-lang.org/getting-started/basic-types.html#booleans
|
|
[boolean-function]: https://elixir-lang.org/getting-started/basic-operators.html |