C# Class Dominion.TestOutput

Inheritance: IDisposable
Datei anzeigen Open project: NathanTeeuwen/Dominulator Class Usage Examples

Public Methods

Method Description
ComparePlayers ( PlayerAction playerActions, GameConfig gameConfig, bool rotateWhoStartsFirst = true, bool shouldParallel = true, bool showVerboseScore = true, bool showCompactScore = false, bool showDistribution = false, bool createHtmlReport = true, bool createRankingReport = false, int numberOfGames = 1000, int logGameCount = 100, bool debugLogs = false, CreateGameLog createGameLog = null ) : double
ComparePlayers ( PlayerAction player1, PlayerAction player2, GameConfig gameConfig, bool rotateWhoStartsFirst = true, bool shouldParallel = true, bool showVerboseScore = true, bool showCompactScore = false, bool showDistribution = false, bool createHtmlReport = true, bool createRankingReport = false, int numberOfGames = 1000, int logGameCount = 100, bool debugLogs = false, CreateGameLog createGameLog = null ) : double
ComparePlayers ( PlayerAction player1, PlayerAction player2, bool useShelters = false, bool useColonyAndPlatinum = false, StartingCardSplit split = StartingCardSplit.Random, bool rotateWhoStartsFirst = true, IEnumerable startingDeckPerPlayer = null, bool shouldParallel = true, bool showVerboseScore = true, bool showCompactScore = false, bool showDistribution = false, bool createHtmlReport = true, bool createRankingReport = false, int numberOfGames = 1000, int logGameCount = 10, bool debugLogs = false, CreateGameLog createGameLog = null ) : double
ComparePlayers ( string player1, string player2, bool useShelters = false, bool useColonyAndPlatinum = false, StartingCardSplit split = StartingCardSplit.Random, bool rotateWhoStartsFirst = false, IEnumerable startingDeckPerPlayer = null, bool shouldParallel = true, bool showVerboseScore = true, bool showCompactScore = false, bool showDistribution = false, bool createHtmlReport = true, bool createRankingReport = false, int numberOfGames = 1000, int logGameCount = 10, bool debugLogs = false, CreateGameLog createGameLog = null ) : double
Dispose ( ) : void
GetDebugLogWriterForIteration ( PlayerAction playerActions, int gameCount ) : IndentedTextWriter
GetGameLogWriterForIteration ( PlayerAction playerActions, int gameCount ) : IndentedTextWriter
GetOutputFilename ( string filename ) : string
TestOutput ( ) : System

Private Methods

Method Description
GetFileNameForType ( PlayerAction playerActions, int gameCount, string logType ) : string
PauseForeverUnderDebugger ( ) : void

Method Details

ComparePlayers() public method

public ComparePlayers ( PlayerAction playerActions, GameConfig gameConfig, bool rotateWhoStartsFirst = true, bool shouldParallel = true, bool showVerboseScore = true, bool showCompactScore = false, bool showDistribution = false, bool createHtmlReport = true, bool createRankingReport = false, int numberOfGames = 1000, int logGameCount = 100, bool debugLogs = false, CreateGameLog createGameLog = null ) : double
playerActions PlayerAction
gameConfig GameConfig
rotateWhoStartsFirst bool
shouldParallel bool
showVerboseScore bool
showCompactScore bool
showDistribution bool
createHtmlReport bool
createRankingReport bool
numberOfGames int
logGameCount int
debugLogs bool
createGameLog CreateGameLog
return double

ComparePlayers() public method

public ComparePlayers ( PlayerAction player1, PlayerAction player2, GameConfig gameConfig, bool rotateWhoStartsFirst = true, bool shouldParallel = true, bool showVerboseScore = true, bool showCompactScore = false, bool showDistribution = false, bool createHtmlReport = true, bool createRankingReport = false, int numberOfGames = 1000, int logGameCount = 100, bool debugLogs = false, CreateGameLog createGameLog = null ) : double
player1 PlayerAction
player2 PlayerAction
gameConfig GameConfig
rotateWhoStartsFirst bool
shouldParallel bool
showVerboseScore bool
showCompactScore bool
showDistribution bool
createHtmlReport bool
createRankingReport bool
numberOfGames int
logGameCount int
debugLogs bool
createGameLog CreateGameLog
return double

ComparePlayers() public method

public ComparePlayers ( PlayerAction player1, PlayerAction player2, bool useShelters = false, bool useColonyAndPlatinum = false, StartingCardSplit split = StartingCardSplit.Random, bool rotateWhoStartsFirst = true, IEnumerable startingDeckPerPlayer = null, bool shouldParallel = true, bool showVerboseScore = true, bool showCompactScore = false, bool showDistribution = false, bool createHtmlReport = true, bool createRankingReport = false, int numberOfGames = 1000, int logGameCount = 10, bool debugLogs = false, CreateGameLog createGameLog = null ) : double
player1 PlayerAction
player2 PlayerAction
useShelters bool
useColonyAndPlatinum bool
split StartingCardSplit
rotateWhoStartsFirst bool
startingDeckPerPlayer IEnumerable
shouldParallel bool
showVerboseScore bool
showCompactScore bool
showDistribution bool
createHtmlReport bool
createRankingReport bool
numberOfGames int
logGameCount int
debugLogs bool
createGameLog CreateGameLog
return double

ComparePlayers() public method

public ComparePlayers ( string player1, string player2, bool useShelters = false, bool useColonyAndPlatinum = false, StartingCardSplit split = StartingCardSplit.Random, bool rotateWhoStartsFirst = false, IEnumerable startingDeckPerPlayer = null, bool shouldParallel = true, bool showVerboseScore = true, bool showCompactScore = false, bool showDistribution = false, bool createHtmlReport = true, bool createRankingReport = false, int numberOfGames = 1000, int logGameCount = 10, bool debugLogs = false, CreateGameLog createGameLog = null ) : double
player1 string
player2 string
useShelters bool
useColonyAndPlatinum bool
split StartingCardSplit
rotateWhoStartsFirst bool
startingDeckPerPlayer IEnumerable
shouldParallel bool
showVerboseScore bool
showCompactScore bool
showDistribution bool
createHtmlReport bool
createRankingReport bool
numberOfGames int
logGameCount int
debugLogs bool
createGameLog CreateGameLog
return double

Dispose() public method

public Dispose ( ) : void
return void

GetDebugLogWriterForIteration() public static method

public static GetDebugLogWriterForIteration ( PlayerAction playerActions, int gameCount ) : IndentedTextWriter
playerActions PlayerAction
gameCount int
return IndentedTextWriter

GetGameLogWriterForIteration() public static method

public static GetGameLogWriterForIteration ( PlayerAction playerActions, int gameCount ) : IndentedTextWriter
playerActions PlayerAction
gameCount int
return IndentedTextWriter

GetOutputFilename() public static method

public static GetOutputFilename ( string filename ) : string
filename string
return string

TestOutput() public method

public TestOutput ( ) : System
return System