inspect_space: Update paths based on inspections

Description Usage Arguments Value Examples

View source: R/inspect_space.R

Description

Updated the list of possible paths based on the results of police investigation

Usage

1
inspect_space(paths, space, clue)

Arguments

paths

list of all possible paths already traveled

space

vector of integers of the spaces inspected

clue

single logical value indicating if evidence of Jack was found

Value

list of all possible paths traveled by Jack

Examples

1
2
3
4
5
possibilities = start_round(64)
possibilities = take_a_step(possibilities,roads)
possibilities = take_a_step(possibilities,roads,blocked=list(c(63,82),c(63,65)))
possibilities = inspect_space(possibilities,space = c(29,30), clue = FALSE)
possibilities = inspect_space(possibilities,space = 49, clue = TRUE)

bmewing/whitechapelR documentation built on May 27, 2019, 11:49 p.m.