pacman-rules

This commit is contained in:
Alexander Heldt
2025-10-30 19:47:49 +01:00
parent 70cfb196b8
commit 3c64c873ef
10 changed files with 298 additions and 0 deletions

27
pacman-rules/HINTS.md Normal file
View File

@@ -0,0 +1,27 @@
# 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 [bool][bool] value.
- You can use the [bool][bool] operator `&&` to combine the arguments for a result.
## 2. Define if pac-man scores
- The function must return a [bool][bool] value.
- You can use the [bool][bool] operator `||` to combine the arguments for a result.
## 3. Define if pac-man loses
- The function must return a [bool][bool] value.
- You can use the [bool][bool] operators `&&` and `!` to combine the arguments for a result.
## 4. Define if pac-man wins
- The function must return a [bool][bool] value.
- You can use the [bool][bool] operators `&&` and `!` to combine the arguments and results of one of the previously implemented functions.
[bool]: https://gleam.run/book/tour/bools.html