mirror of
https://codeberg.org/andyscott/exercism.git
synced 2024-11-13 23:00:47 -05:00
27 lines
No EOL
1 KiB
Markdown
27 lines
No EOL
1 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 value.
|
|
- You can use the logical operator and ([`&&`][logical operators]) to combine the arguments for a result.
|
|
|
|
## 2. Define if pac-man scores
|
|
|
|
- The function must return a boolean value.
|
|
- You can use the logical operator or ([`||`][logical operators]) 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 [`&&`][logical operators] and [`!`][logical operators] 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 [`&&`][logical operators] and [`!`][logical operators] to combine the arguments and results of one of the previously implemented functions.
|
|
|
|
[logical operators]: https://en.cppreference.com/w/cpp/language/operator_logical |