C# Class Dominion.TestOutput

Inheritance: IDisposable
Afficher le fichier Open project: NathanTeeuwen/Dominulator Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
GetFileNameForType ( PlayerAction playerActions, int gameCount, string logType ) : string
PauseForeverUnderDebugger ( ) : void

Method Details

ComparePlayers() public méthode

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
Résultat double

ComparePlayers() public méthode

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
Résultat double

ComparePlayers() public méthode

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
Résultat double

ComparePlayers() public méthode

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
Résultat double

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetDebugLogWriterForIteration() public static méthode

public static GetDebugLogWriterForIteration ( PlayerAction playerActions, int gameCount ) : IndentedTextWriter
playerActions PlayerAction
gameCount int
Résultat IndentedTextWriter

GetGameLogWriterForIteration() public static méthode

public static GetGameLogWriterForIteration ( PlayerAction playerActions, int gameCount ) : IndentedTextWriter
playerActions PlayerAction
gameCount int
Résultat IndentedTextWriter

GetOutputFilename() public static méthode

public static GetOutputFilename ( string filename ) : string
filename string
Résultat string

TestOutput() public méthode

public TestOutput ( ) : System
Résultat System