R/start_round.R

Defines functions start_round

Documented in start_round

#' @export

start_round = function(initial_murder){
  #' @title Start a new round
  #'
  #' @description Generate the initial list for a new round
  #'
  #' @param initial_murder integer Space of the initial murder(s)
  #'
  #' @return list with the initial murder location(s) as the starting point(s)
  #' @examples
  #' possibilities = start_round(64)
  #' possibilities = start_round(128)

  l = list()
  l[[1]] = initial_murder[1]
  if(length(initial_murder) == 2) l[[2]] = initial_murder[2]
  return(l)
}

Try the whitechapelR package in your browser

Any scripts or data that you put into this service are public.

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