end_round: Manage list of possible hideouts

Description Usage Arguments Value Examples

View source: R/end_round.R

Description

Create or update a list of possible hideouts based on final positions from the list of possible paths traveled.

Usage

1
end_round(paths, hideouts = NULL)

Arguments

paths

list of all possible paths already traveled

hideouts

optional vector of possible hideouts from previous rounds. Not used in round 1, only rounds 2 and 3

Value

list of all possible hideouts

Examples

1
2
3
4
5
6
7
8
9
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)
hideouts = end_round(possibilities,hideouts=NULL)
possibilities = start_round(67)
possibilities = take_a_step(possibilities,roads)
hideouts = end_round(possibilities,hideouts=hideouts)

whitechapelR documentation built on May 2, 2019, 9:36 a.m.