trim_possibilities {whitechapelR}R Documentation

Trim possible paths

Description

Remove known impossible end points for Jack, typically as a result of having found, but not arrested Jack.

Usage

trim_possibilities(paths, node)

Arguments

paths

list of all possible paths already traveled

node

vector of length 1 or 2 which specifies blocked nodes due to the presence of a policeman

Value

list of trimmed possible paths traveled by Jack

Examples

possibilities = start_round(64)
possibilities = take_a_carriage(possibilities)
possibilities = trim_possibilities(possibilities,82)
possibilities = trim_possibilities(possibilities,c(66,67))

[Package whitechapelR version 0.3.0 Index]