| gloveGame {CoopGame} | R Documentation | 
Construct a glove game
Description
Create a list containing 
all information about a specified glove game: 
We have a set of players L with left-hand gloves and 
a set of players R with right-hand gloves.
The worth of a coalition S equals the number of 
pairs of gloves the members of S can make. 
Note that the sets L and R have to be disjoint.
Usage
gloveGame(n, L, R)
Arguments
| n | represents the number of players | 
| L | numeric vector of players owning one left-hand glove each | 
| R | numeric vector of players owning one right-hand glove each | 
Value
A list with four elements representing the glove game (n, L, R, Game vector v)
Related Functions
gloveGameValue, gloveGameVector
Author(s)
Jochen Staudacher jochen.staudacher@hs-kempten.de
References
Peters H. (2015) Game Theory: A Multi-Leveled Approach, 2nd Edition, Springer, pp. 155–156
Examples
library(CoopGame)
gloveGame(n=3,L=c(1,2), R=c(3))
#Example with four players: 
#players 1, 2 and 4 hold a left-hand glove each, 
#player 3 holds a right-hand glove. 
library(CoopGame)
(vv<-gloveGame(n=4,L=c(1,2,4), R=c(3)))
#$n
#[1] 3
#$L
#[1] 1 2 4
#
#$R
#[1] 3
#
#$v
#[1] 0 0 0 0 0 1 0 1 0 1 1 0 1 1 1
[Package CoopGame version 0.2.2 Index]