
399 0 
This is the output of the entrance field with 4 robots and two surrounding wall fields for comparison. The exit looks exactly the same, so there is no way of knowing which is which without knowing that the entrance is always in the first line of walls and the exit is in the last line. This too would be solved by some way of adding a keyvaluepair in the encoding process.

{
"content" : "wall",
"position" : {
"x" : 13,
"y" : 0
}
},
{
"content" : [
{
"product" : {
"type" : "C"
},
"position" : {
"x" : 14,
"y" : 0
},
"id" : 2,
"routing" : {
},
"remainingRoute" : [
{
"x" : 7,
"y" : 1
},
{
"x" : 6,
"y" : 6
},
{
"x" : 17,
"y" : 2
},
{
"x" : 19,
"y" : 3
},
{
"x" : 20,
"y" : 6
},
{
"x" : 27,
"y" : 1
},
{
"x" : 14,
"y" : 9
}
],
"state" : "starting",
"dodgeCounter" : 0
},
{
"product" : {
"type" : "C"
},
"position" : {
"x" : 14,
"y" : 0
},
"id" : 3,
"routing" : {
},
"remainingRoute" : [
{
"x" : 7,
"y" : 1
},
{
"x" : 6,
"y" : 6
},
{
"x" : 17,
"y" : 2
},
{
"x" : 19,
"y" : 3
},
{
"x" : 20,
"y" : 6
},
{
"x" : 27,
"y" : 1
},
{
"x" : 14,
"y" : 9
}
],
"state" : "starting",
"dodgeCounter" : 0
},
{
"product" : {
"type" : "F"
},
"position" : {
"x" : 14,
"y" : 0
},
"id" : 1,
"routing" : {
},
"remainingRoute" : [
{
"x" : 19,
"y" : 3
},
{
"x" : 17,
"y" : 2
},
{
"x" : 19,
"y" : 3
},
{
"x" : 17,
"y" : 2
},
{
"x" : 19,
"y" : 3
},
{
"x" : 6,
"y" : 6
},
{
"x" : 14,
"y" : 9
}
],
"state" : "starting",
"dodgeCounter" : 0
},
{
"product" : {
"type" : "A"
},
"position" : {
"x" : 14,
"y" : 0
},
"id" : 4,
"routing" : {
},
"remainingRoute" : [
{
"x" : 27,
"y" : 1
},
{
"x" : 20,
"y" : 6
},
{
"x" : 19,
"y" : 3
},
{
"x" : 17,
"y" : 2
},
{
"x" : 6,
"y" : 6
},
{
"x" : 7,
"y" : 1
},
{
"x" : 14,
"y" : 9
}
],
"state" : "starting",
"dodgeCounter" : 0
}
],
"position" : {
"x" : 14,
"y" : 0
}
},
{
"content" : "wall",
"position" : {
"x" : 15,
"y" : 0
}
}