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