QHawkDove: Quantum Hawk and Dove game

Description Usage Arguments Value References Examples

View source: R/QHawkDove.R

Description

This function returns the expected payoffs to Alice and Bob with respect to the probabilities p and q. p+q should equal 1 and moves is a list of two possible strategies for each of the players and v, j, D are the value of resource, cost of injury and cost of displaying respectively.

Usage

1
QHawkDove(p, q, moves, v, j, D)

Arguments

p

a real number between 0 and 1 including the end points

q

a real number between 0 and 1 including the end points

moves

a list of matrics

v

a number

j

a number

D

a number

Value

A vector consisting of the expected payoffs to Alice and Bob as its elements calculated according to the probabilities p and q provided as inputs.

References

https://arxiv.org/pdf/quant-ph/0506219.pdf
https://arxiv.org/pdf/quant-ph/0208069.pdf
https://arxiv.org/pdf/quant-ph/0108075.pdf

Examples

1
2
3
4
init()
moves <- list(Q$I2, sigmaX(Q$I2))
QHawkDove(0, 1, moves, 50, -100, -10)
QHawkDove(0, 0, moves, 50, -100, -10)

QGameTheory documentation built on July 8, 2020, 7:27 p.m.