check_roll: check_roll

Description Usage Arguments Value

View source: R/interactive_helpers.R

Description

Helper function for interactive gameplay Separate rolled dice into those that can be kept and those that can be rerolled

Usage

1
check_roll(rolled_dice, prev_dice)

Arguments

rolled_dice
  • most recently rolled dice

prev_dice
  • any dice kept from previous turns

Value

List containing a vector of the dice to be kept and a vector of dice to be rerolled


jormacmoo/shipcapcrew documentation built on Dec. 26, 2019, 11:04 p.m.