Skip to content

Commit c137fcf

Browse files
authored
fix semantics to specify a ghost (#3702)
1 parent 3f106bb commit c137fcf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

exercises/concept/ghost-gobble-arcade-game/.docs/instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ You have four rules to implement, all related to the game states.
88
99
## 1. Define if Pac-Man eats a ghost
1010

11-
Define the `eat_ghost()` function that takes two parameters (_if Pac-Man has a power pellet active_ and _if Pac-Man is touching a ghost_) and returns a Boolean value if Pac-Man is able to eat the ghost.
11+
Define the `eat_ghost()` function that takes two parameters (_if Pac-Man has a power pellet active_ and _if Pac-Man is touching a ghost_) and returns a Boolean value if Pac-Man is able to eat a ghost.
1212
The function should return `True` only if Pac-Man has a power pellet active and is touching a ghost.
1313

1414
```python

exercises/concept/ghost-gobble-arcade-game/.meta/exemplar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def eat_ghost(power_pellet_active, touching_ghost):
66
77
:param power_pellet_active: bool - does the player have an active power pellet?
88
:param touching_ghost: bool - is the player touching a ghost?
9-
:return: bool - can the ghost be eaten?
9+
:return: bool - can a ghost be eaten?
1010
"""
1111

1212
return power_pellet_active and touching_ghost

exercises/concept/ghost-gobble-arcade-game/arcade_game.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def eat_ghost(power_pellet_active, touching_ghost):
66
77
:param power_pellet_active: bool - does the player have an active power pellet?
88
:param touching_ghost: bool - is the player touching a ghost?
9-
:return: bool - can the ghost be eaten?
9+
:return: bool - can a ghost be eaten?
1010
"""
1111

1212
pass

0 commit comments

Comments
 (0)