Learn R Programming

ggpacman (version 0.1.0)

compute_ghost_status: Compute Ghost Status

Description

Compute a ghost status, i.e., normal, weak or eaten.

Usage

compute_ghost_status(ghost, pacman_moves, bonus_points_eaten)

Arguments

ghost

A data.frame with the coordinates of Ghost moves.

pacman_moves

Pac-Man computed moves.

bonus_points_eaten

Computed datga for points eaten by Pac-Man.

Value

Returns a tibble with ghost status as a column along side coordinates.