Commit 50f51f47 authored by Arthur Bit-Monnot's avatar Arthur Bit-Monnot

Support for color needing 1/2 more operation.

parent bdb86996
......@@ -20,13 +20,21 @@ object RCLL extends App {
val domain = new File("out/rcll.dom.pddl")
val problem = new File(s"out/rcll.$pbName.pb.pddl")
val colorLevel =
if(Set(6, 9, 12, 17).contains(game))
2
else if(Set(2, 13, 15, 18).contains(game))
1
else
0
val maxActions: Map[String, Int] = Map(
"bs-dispense" -> 1,
"cs-mount-cap" -> 1,
"cs-retrieve-cap" -> 1,
"enter-field" -> r,
"move-wp-get" -> (3 + c),
"move-wp-put-at-input" -> (3 + c),
"move-wp-put-at-input" -> (3 + c + colorLevel),
"prepare-bs" -> 1,
"prepare-cs" -> 2, // mount and retrieve
"prepare-ds" -> 1,
......@@ -34,8 +42,8 @@ object RCLL extends App {
"rs-mount-ring1" -> (if(c >= 1) 1 else 0),
"wp-discard" -> 1,
"wp-get" -> (3 + c),
"wp-get-shelf" -> 1,
"wp-put-slide-cc" -> 0,
"wp-get-shelf" -> (1 + (if(colorLevel == 2) 1 else 0)),
"wp-put-slide-cc" -> colorLevel,
"wp-put-slide-empty-base" -> 0,
"wp-put" -> (3 + c),
"fulfill-order-c0" -> (if(c == 0) 1 else 0),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment