NAME
Game::Theory::TwoPersonMatrix - Analyze a 2 person matrix game
VERSION
version 0.07
SYNOPSIS
use Game::Theory::TwoPersonMatrix;
my $g = Game::Theory::TwoPersonMatrix->new();
DESCRIPTION
A Game::Theory::TwoPersonMatrix
analyzes a two person matrix game of player names, strategies and numerical utilities.
The players must have the same number of strategies, and each strategy must have the same size utility vectors as all the others.
Players 1 and 2 are the "row" and "column" players, respectively. This is due to the tabular format of a matrix game:
Player 2
--------
Strategy 0.5 0.5
Player | 0.5 1 0 < Payoff
1 | 0.5 0 1 <
The above is the default - a simple, symmetrical zero-sum game, i.e. "matching pennies."
METHODS
new()
$g = Game::Theory::TwoPersonMatrix->new();
$g = Game::Theory::TwoPersonMatrix->new(
1 => { 1 => '0.5', 2 => '0.5' },
2 => { 1 => '0.5', 2 => '0.5' },
payoff => [ [1,0],
[0,1] ]
);
Create a new Game::Theory::TwoPersonMatrix
object.
expected_value()
Return the expected payoff value.
SEE ALSO
"A Gentle Introduction to Game Theory" http://www.amazon.com/Gentle-Introduction-Theory-Mathematical-World/dp/0821813390
AUTHOR
Gene Boggs <gene@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by Gene Boggs.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.