Package rs.ac.bg.etf.domain
Class PayoffMatrix
java.lang.Object
rs.ac.bg.etf.domain.PayoffMatrix
public final class PayoffMatrix
extends java.lang.Object
Class representing the payoff matrix for the game of two players.
- Author:
- Vladimir, Adrian
-
Field Summary
Fields Modifier and Type Field Description static int[][][]
matrix
Accessing player's payoffs for player1 decision decI and player2 decision decJ. -
Constructor Summary
Constructors Constructor Description PayoffMatrix()
-
Method Summary
-
Field Details
-
matrix
public static final int[][][] matrixAccessing player's payoffs for player1 decision decI and player2 decision decJ.
Payoff for player1:
PayoffMatrix.matrix[decI][decJ][0]
Payoff for player2:
PayoffMatrix.matrix[decI][decJ][1]
-
-
Constructor Details
-
PayoffMatrix
public PayoffMatrix()
-