initialWorld har ingen holding.
w2 håller i något.
Planner > handleOutput $ head $ P.runParser shrdPGF "put it on the floor" initialWorld
O {action = Put, mBlocks = [], location = Floor [0,5,6,8]}
Planner > handleOutput $ head $ P.runParser shrdPGF "put it on the floor" w2
O {action = Put, mBlocks = [], location = Floor [0,5,6,8]}
Den första borde fallera eftersom "it" syftar på något som inte finns (holding är tom)
Den andra borde väl ha mBlocks = [holdingblocket]
initialWorld har ingen holding. w2 håller i något.
Planner > handleOutput $ head $ P.runParser shrdPGF "put it on the floor" initialWorld O {action = Put, mBlocks = [], location = Floor [0,5,6,8]} Planner > handleOutput $ head $ P.runParser shrdPGF "put it on the floor" w2 O {action = Put, mBlocks = [], location = Floor [0,5,6,8]}
Den första borde fallera eftersom "it" syftar på något som inte finns (holding är tom) Den andra borde väl ha mBlocks = [holdingblocket]