mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-20 18:10:44 -04:00
Make single game simulate another task if error
This commit is contained in:
parent
31bb9c8807
commit
0c0084dd4b
1 changed files with 2 additions and 2 deletions
|
@ -71,14 +71,14 @@ module.exports = class Simulator extends CocoClass
|
|||
if @options.headlessClient and @options.simulateOnlyOneGame
|
||||
console.log "GAMERESULT:tie"
|
||||
process.exit(0)
|
||||
@cleanupSimulation()
|
||||
@cleanupAndSimulateAnotherTask()
|
||||
|
||||
handleSingleSimulationInfiniteLoop: ->
|
||||
console.log "There was an infinite loop in the single game!"
|
||||
if @options.headlessClient and @options.simulateOnlyOneGame
|
||||
console.log "GAMERESULT:tie"
|
||||
process.exit(0)
|
||||
@cleanupSimulation()
|
||||
@cleanupAndSimulateAnotherTask()
|
||||
|
||||
processSingleGameResults: (simulationResults) ->
|
||||
taskResults = @formTaskResultsObject simulationResults
|
||||
|
|
Loading…
Reference in a new issue