Skip to content

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

@mdjong1

Description

@mdjong1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions