Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input allows for non landscape objects? #8

Open
fabianvdW opened this issue Nov 25, 2022 · 1 comment
Open

Input allows for non landscape objects? #8

fabianvdW opened this issue Nov 25, 2022 · 1 comment

Comments

@fabianvdW
Copy link

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
Copy link
Contributor

The input object will never contain "Bauteile".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants