public final class FirstPlayerAdvantageGame extends Object implements TwoPlayerGame
Some games have a "first-mover advantage" - meaning the player that moves first has a greater chance of winning than the player that moves second. To avoid "first-mover advantage" causing players to be unfairly ranked, each pair plays each other twice - with each having the opportunity to move first.
|Constructor and Description|
|Modifier and Type||Method and Description|
Determines the outcome of the two specified players competing against each other.
public FirstPlayerAdvantageGame(TwoPlayerGame twoPlayerGame)
FirstPlayerAdvantageGamethat uses the given
player1- represents the game-logic of a player participating in the game
player2- represents the game-logic of the other player participating in the game
player1, as implementations of
TwoPlayerGamerepresent zero-sum games then the corresponding outcome for
player2can be determined by negating this value
OakGP Genetic Programming Framework