We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is a valid solution to the win function in the Pacman Rules exercise which is as follows:
win
pub fn win( has_eaten_all_dots: Bool, power_pellet_active: Bool, touching_ghost: Bool, ) -> Bool { has_eaten_all_dots && { power_pellet_active == touching_ghost } }
As you can see, this is not equivalent to the intended solution of:
pub fn win( has_eaten_all_dots: Bool, power_pellet_active: Bool, touching_ghost: Bool, ) -> Bool { has_eaten_all_dots && !lose(power_pellet_active, touching_ghost) }
If we expand that solution out we get:
pub fn win( has_eaten_all_dots: Bool, power_pellet_active: Bool, touching_ghost: Bool, ) -> Bool { has_eaten_all_dots && !{ !power_pellet_active && touching_ghost } }
a ∧ (b ↔ c) is not equivalent to a ∧ !(!b ∧ c).
a ∧ (b ↔ c)
a ∧ !(!b ∧ c)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There is a valid solution to the
win
function in the Pacman Rules exercise which is as follows:As you can see, this is not equivalent to the intended solution of:
If we expand that solution out we get:
a ∧ (b ↔ c)
is not equivalent toa ∧ !(!b ∧ c)
.The text was updated successfully, but these errors were encountered: