select_target_basic_cricket: Reasons which shot to select given basic cricket strategy.

Description Usage Arguments Value

View source: R/select_target_basic_cricket.R

Description

Reasons which shot the shooter will select based on a basic cricket strategy. The shooter (1) checks if behind in points (2) if not behind, then shoots the highest bed or bull (3) if behind, then shooter the highest open bed of the opponent

Usage

1
select_target_basic_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.