outcome_probs: Outcome probabilities

View source: R/functions.R

outcome_probsR Documentation

Outcome probabilities

Description

Convert outcome distributions from eXtreme Gammon to probabilities

Usage

outcome_probs(xg_probs)

Arguments

xg_probs

numeric vector of length 6, corresponding to the winning chances reported by eXtreme Gammon. Can be percentages or decimal fractions.

Details

Both eXtreme Gammon and GNU Backgammon report estimated outcome probabilities in a cumulative way: The number under "wins" is the probability of winning an ordinary game, a gammon or a backgammon. Sometimes it can be convenient to have discrete probabilities.

Value

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

Examples

# 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)
outcome_probs(cum_probs)


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