Last active
August 12, 2018 23:35
-
-
Save jimratliff/82f7ebe02f5ac39d92a5c878b0efd205 to your computer and use it in GitHub Desktop.
Template of arrays and values for defining a jdrsgame strategic-form game #latex #jdrsgame
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\definejdrsgame{3}{4} | |
% Define the players' names | |
\renewcommand{\Rplayernm}{Ms.\ Row} | |
\renewcommand{\Cplayernm}{Mr.\ Column} | |
% Define Column's strategies | |
\readarray{ColumnStrategies}{A&B&C&D&E&F&G&H&I&J} | |
%\ColumnStrategies(1)={A} | |
%\ColumnStrategies(2)={B} | |
%\ColumnStrategies(3)={C} | |
%\ColumnStrategies(4)={D} | |
%\ColumnStrategies(5)={E} | |
%\ColumnStrategies(6)={F} | |
%\ColumnStrategies(7)={G} | |
%\ColumnStrategies(8)={H} | |
%\ColumnStrategies(9)={I} | |
%\ColumnStrategies(10)={J} | |
% Define Row strategies | |
\readarray{ColumnStrategies}{a&b&c&d&e&f&g&h&i&j} | |
%\RowStrategies(1)={a} | |
%\RowStrategies(2)={b} | |
%\RowStrategies(3)={c} | |
%\RowStrategies(4)={d} | |
%\RowStrategies(5)={e} | |
%\RowStrategies(6)={f} | |
%\RowStrategies(7)={g} | |
%\RowStrategies(8)={h} | |
%\RowStrategies(9)={i} | |
%\RowStrategies(10)={j} | |
% Define Row Payoffs | |
&\readarray{RowPayoffs}{R11&R12&R13&R14&R21&R22&R23&R24&R31&R32&R33&R34&R41&R42&R43&R44} | |
\RowPayoffs(1,1)={R11} | |
\RowPayoffs(1,2)={R12} | |
\RowPayoffs(1,3)={R13} | |
\RowPayoffs(1,4)={R14} | |
\RowPayoffs(2,1)={R21} | |
\RowPayoffs(2,2)={R22} | |
\RowPayoffs(2,3)={R23} | |
\RowPayoffs(2,4)={R24} | |
\RowPayoffs(3,1)={R31} | |
\RowPayoffs(3,2)={R32} | |
\RowPayoffs(3,3)={R33} | |
\RowPayoffs(3,4)={R34} | |
% Define Column Payoffs | |
&\readarray{ColumnPayoffs}{C11&C12&C13&C14&C21&C22&C23&C24&C31&C32&C33&C34&C41&C42&C43&C44} | |
\ColumnPayoffs(1,1)={C11} | |
\ColumnPayoffs(1,2)={C12} | |
\ColumnPayoffs(1,3)={C13} | |
\ColumnPayoffs(1,4)={C14} | |
\ColumnPayoffs(2,1)={C21} | |
\ColumnPayoffs(2,2)={C22} | |
\ColumnPayoffs(2,3)={C23} | |
\ColumnPayoffs(2,4)={C24} | |
\ColumnPayoffs(3,1)={C31} | |
\ColumnPayoffs(3,2)={C32} | |
\ColumnPayoffs(3,3)={C33} | |
\ColumnPayoffs(3,4)={C34} | |
%\printjdrsgame |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment