mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-09 15:29:32 +07:00
FINALLY got ConsoleLauncher returning actual simulation results!!
This commit is contained in:
@ -20,7 +20,7 @@ class Simulation(
|
||||
val simulationsPerThread: Int = 1
|
||||
,
|
||||
private val threadsNumber: Int = 1,
|
||||
private val maxTurns: Int = 1000
|
||||
private val maxTurns: Int = 500
|
||||
) {
|
||||
private val maxSimulations = threadsNumber * simulationsPerThread
|
||||
val civilizations = newGameInfo.civilizations.filter { it.civName != Constants.spectator }.map { it.civName }
|
||||
|
@ -41,8 +41,10 @@ internal object ConsoleLauncher {
|
||||
val mapParameters = getMapParameters()
|
||||
val gameSetupInfo = GameSetupInfo(gameParameters, mapParameters)
|
||||
val newGame = GameStarter.startNewGame(gameSetupInfo)
|
||||
newGame.gameParameters.victoryTypes = ArrayList(newGame.ruleset.victories.keys)
|
||||
UncivGame.Current.gameInfo = newGame
|
||||
|
||||
|
||||
val simulation = Simulation(newGame,10,4)
|
||||
|
||||
simulation.start()
|
||||
|
Reference in New Issue
Block a user