# NOT RUN {
library(CoopGame)
v=c(0,0,0,2,2,2,2)
isConstantSumGame(v)
# }
# NOT RUN {
#Example of a game that is not constant-sum
library(CoopGame)
v=c(0,0,0,40,30,130,100)
isConstantSumGame(v)
#Another example of a constant-sum game
library(CoopGame)
v=c(1,1,1,2, 2,2,2,2,2,2, 2,3,3,3, 4)
isConstantSumGame(v)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab