Description Usage Arguments Value
View source: R/force_score_cricket.R
This is useful if you want to stage a specific scenario to simulate.
1 | force_score_cricket(gm, player_id, bed_val, num_marks, points)
|
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 |
updated gm, a cricket game object, with the new score
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.