Skip to contents

SalvoExchange: Hughes (1995) salvo exchanges with offensive, defensive and staying power. BlottoPayoff: battlefield-by-battlefield payoff (ties split). BlottoBestResponse: exhaustive best response to a known pure or mixed opponent strategy.

Usage

SalvoExchange(A, B, alpha, beta, a1, b1, a3 = 0, b3 = 0, salvos = 1)

BlottoPayoff(alloc_a, alloc_b, values = NULL)

BlottoBestResponse(opponent, troops, values = NULL)

Arguments

A, B

Initial units.

alpha, beta

Offensive power per unit.

a1, b1

Staying power.

a3, b3

Defensive power.

salvos

Number of salvo exchanges.

alloc_a, alloc_b

Allocations.

values

Battlefield values.

opponent

Allocation, or list of list(probability, allocation).

troops

Units to allocate.

Value

List.

References

Hughes, W. P. (1995). A salvo model of warships in missile combat used to evaluate their staying power. Naval Research Logistics 42, 267-289.

Roberson, B. (2006). The Colonel Blotto game. Economic Theory 29, 1-24.

Examples

SalvoExchange(10, 8, alpha = 2, beta = 2, a1 = 2, b1 = 2, a3 = 1, b3 = 1)$B
#> [1] 8 2
BlottoBestResponse(c(2, 2, 2), 6)$allocation
#> [1] 0 3 3