C# Class Dominion.Data.StrategyComparison

显示文件 Open project: NathanTeeuwen/Dominulator Class Usage Examples

Public Properties

Property Type Description
gameConfig Dominion.GameConfig
numberOfGames int
playerActions PlayerAction[]
rotateWhoStartsFirst bool
totalGameCount int

Public Methods

Method Description
Compare ( PlayerAction player1, PlayerAction player2, int numberOfGames = 100, bool rotateWhoStartsFirst = false, bool shouldParalell = false, bool gatherStats = true ) : StrategyComparisonResults
ComparePlayers ( GetLogForGame getHumanReadableLogWriter = null, GetLogForGame getDebugLogWriter = null, bool shouldParallel = true, bool gatherStats = true, CreateGameLog createGameLog = null, int randomSeed ) : StrategyComparisonResults
GetHumanReadableGameLog ( int gameNumber ) : string
GetPlayerOrderForGameNumber ( int gameNumber ) : int[]
StrategyComparison ( PlayerAction playerActions, GameConfig gameConfig, bool rotateWhoStartsFirst, int numberOfGames ) : System
StrategyComparison ( PlayerAction player1, PlayerAction player2, GameConfig gameConfig, bool rotateWhoStartsFirst, int numberOfGames ) : System
StrategyComparison ( PlayerAction player1, PlayerAction player2, PlayerAction player3, GameConfig gameConfig, bool rotateWhoStartsFirst, int numberOfGames ) : System

Method Details

Compare() public static method

public static Compare ( PlayerAction player1, PlayerAction player2, int numberOfGames = 100, bool rotateWhoStartsFirst = false, bool shouldParalell = false, bool gatherStats = true ) : StrategyComparisonResults
player1 PlayerAction
player2 PlayerAction
numberOfGames int
rotateWhoStartsFirst bool
shouldParalell bool
gatherStats bool
return StrategyComparisonResults

ComparePlayers() public method

public ComparePlayers ( GetLogForGame getHumanReadableLogWriter = null, GetLogForGame getDebugLogWriter = null, bool shouldParallel = true, bool gatherStats = true, CreateGameLog createGameLog = null, int randomSeed ) : StrategyComparisonResults
getHumanReadableLogWriter GetLogForGame
getDebugLogWriter GetLogForGame
shouldParallel bool
gatherStats bool
createGameLog CreateGameLog
randomSeed int
return StrategyComparisonResults

GetHumanReadableGameLog() public method

public GetHumanReadableGameLog ( int gameNumber ) : string
gameNumber int
return string

GetPlayerOrderForGameNumber() public method

public GetPlayerOrderForGameNumber ( int gameNumber ) : int[]
gameNumber int
return int[]

StrategyComparison() public method

public StrategyComparison ( PlayerAction playerActions, GameConfig gameConfig, bool rotateWhoStartsFirst, int numberOfGames ) : System
playerActions PlayerAction
gameConfig Dominion.GameConfig
rotateWhoStartsFirst bool
numberOfGames int
return System

StrategyComparison() public method

public StrategyComparison ( PlayerAction player1, PlayerAction player2, GameConfig gameConfig, bool rotateWhoStartsFirst, int numberOfGames ) : System
player1 PlayerAction
player2 PlayerAction
gameConfig Dominion.GameConfig
rotateWhoStartsFirst bool
numberOfGames int
return System

StrategyComparison() public method

public StrategyComparison ( PlayerAction player1, PlayerAction player2, PlayerAction player3, GameConfig gameConfig, bool rotateWhoStartsFirst, int numberOfGames ) : System
player1 PlayerAction
player2 PlayerAction
player3 PlayerAction
gameConfig Dominion.GameConfig
rotateWhoStartsFirst bool
numberOfGames int
return System

Property Details

gameConfig public_oe property

public GameConfig,Dominion gameConfig
return Dominion.GameConfig

numberOfGames public_oe property

public int numberOfGames
return int

playerActions public_oe property

public PlayerAction[] playerActions
return PlayerAction[]

rotateWhoStartsFirst public_oe property

public bool rotateWhoStartsFirst
return bool

totalGameCount public_oe static_oe property

public static int totalGameCount
return int