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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • matrix

      public static final int[][][] matrix
      Accessing 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