informatiCup / informatiCup2023

Der InformatiCup 2023
6 stars 4 forks source link

Input allows for non landscape objects? #8

Open fabianvdW opened 1 year ago

fabianvdW commented 1 year ago

May the input json object contain non-deposit or non-obstacle, e.g. non landscape objects in its "objects" datafield? It is not explicitly cleared in the pdf(although the german comment in the example says "Landschaftsteile"), so we would assume this not to be the case. If so (which would not be hard to handle), should such objects be again contained in the output? Example: Input:

{
"width":30, // Breite des Spielfeldes, maximal 100
"height":20, // Höhe des Spielfeldes, maximal 100
"objects":[ // Landschaftsteile (Liste)
{"type":"deposit","subtype":0,"x":1,"y":1,"width":5,"height":5},
{"type":"deposit","subtype":1,"x":1,"y":14,"width":5,"height":5},
{"type":"deposit","subtype":2,"x":22,"y":1,"width":7,"height":7},
{"type":"obstacle","x":11,"y":9,"width":19,"height":2},
{"type":"obstacle","x":11,"y":1,"width":2,"height":8}
{"type":"factory","x":13,"y":12,"subtype":0}
],
"products":[ // Produkte (Liste)
{"type":"product","subtype":0,"resources":[3,3,3,0,0,0,0,0],"points":10}
],
"turns":50, // Anzahl Runden
“time”:120 // Maximale Rechenzeit in Sekunden
}

Should the output then contain

{"type":"factory","x":13,"y":12,"subtype":0}

?

bitflipp commented 1 year ago

The input object will never contain "Bauteile".