tp_table: Compare take points

View source: R/functions.R

tp_tableR Documentation

Compare take points

Description

Compute take points at a given match score, create a nice table to compare those with money game take points

Usage

tp_table(x, y, probs, cube, met, cube_eff = 2/3)

Arguments

x

number of points that player needs

y

number of points that opponent needs

probs

numeric vector of length 6, representing outcome probabilities (must sum to 1 or 100)

cube

cube value

met

match equity table

cube_eff

cube-life index, between 0 and 1, defaults to 2/3

Value

data.frame

Examples

met <- get_met()
# XGID=-a-BaBC-A---eE---c-e----B-:0:0:1:00:0:0:0:0:10
# 4-ply winning chances, reported in a cumulative fashion:
cum_probs <- c(61.94, 24.09, 1.04, 38.06, 8.54, 0.42)
probs <- outcome_probs(cum_probs)
tp_table(3, 5, probs, 1, met)


lassehjorthmadsen/backgammon documentation built on Jan. 25, 2025, 7:24 a.m.