Skip to content
New issue

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

If ghost plans to move to your location in next move, you die #2

Open
mdjong1 opened this issue Oct 8, 2018 · 3 comments
Open

If ghost plans to move to your location in next move, you die #2

mdjong1 opened this issue Oct 8, 2018 · 3 comments

Comments

@mdjong1
Copy link
Contributor

mdjong1 commented Oct 8, 2018

When the player moves away from a ghost that is beside him, he will die. Probably related to ae43d25 in which ghosts get to move first. Below are images attached of two situations in which this happened. (Note: these are for a randomly generated map which may appear in a later PR).

Behavior could be explained by ghost moving faster than pacman (which it is in the real game, I believe). However, then Pacman should disappear off the board (and perhaps reason for losing should be printed (you're not fast enough)).

image
image

@iamlucasvieira
Copy link
Contributor

Do you know if this also happens when using the AsciiArtUI() for the UI?
I noticed that, when using AsciiArtUI, the ghosts that killed you is removed from the board.
Maybe the ghost that moved faster than you also disappear, so perhaps the user can visualize what happened.

@iamlucasvieira
Copy link
Contributor

Just found a case with the AsciiArtUI where the ghost is not removed from the board when you're killed.
I think that to the user it might be a bit confusing how the death happened.

image

@mauricioaniche
Copy link
Owner

mauricioaniche commented Sep 25, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants