select_target_closing_cricket: Reasons which shot to select given a closing strategy.

Description Usage Arguments Value

View source: R/select_target_closing_cricket.R

Description

Reasons which shot the shooter will select based on a closing strategy (aka, boxing). The shooter (1) checks if behind in points (this is modified so that the shooter can be one mark's worth of points behind) (2) if not behind, then shoots the highest bed or bull that is open for the opponent (3) if not behind and the opponent has closed all marks, then shoot the highest bed or bull (4) if behind, then shooter the highest open bed of the opponent

Usage

1
select_target_closing_cricket(gm, shooter_player_id, opponent_player_id)

Arguments

gm

object created from the set_cricket_game

shooter_player_id

either 1 or 2 given the shooter

opponent_player_id

either 1 or 2, but should not be the shooter's id

Value

name of the target


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