force_score_cricket: Forces an update to a player's score without simulating a...

Description Usage Arguments Value

View source: R/force_score_cricket.R

Description

This is useful if you want to stage a specific scenario to simulate.

Usage

1
force_score_cricket(gm, player_id, bed_val, num_marks, points)

Arguments

gm

a cricket game object initialized by set_cricket_game

player_id

either 1 or 2 to signify which shooter's score will be updated

bed_val

vector signifying which bed (20, 19, etc.). Bull = 25 in this case

num_marks

vector aligned with bed_val that has the number of marks for the bed

points

scalar of the number of point to apply to the shooter

Value

updated gm, a cricket game object, with the new score


chringer-git/cricketmodel documentation built on Sept. 9, 2019, 5:06 p.m.