Skip to content

Commit

Permalink
catch empty rollout
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneslenfers committed Oct 22, 2024
1 parent 23baf72 commit 034b4ad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class MCTS[P] extends Heuristic[P] {
rollout = choose_valid_solution_randomly(panel = panel, actions = actions, rollout._2)

// check if rollout is empty
if (rollout == null) {
if (rollout._1 == null) {
isTerminal = true
} else {
rollout._1.solutionSteps.foreach(step => println(s"""[${step.strategy}, ${step.location}]"""))
Expand Down

0 comments on commit 034b4ad

Please sign in to comment.