planet-wars/backend/templates/info/info_4.html.tera
2020-04-09 22:57:12 +02:00

43 lines
879 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends "info/base" %}
{% block header %}
Format: Game state
{% endblock %}
{% block info %}
<div class="help_content_2">
<pre>
<code>{
"planets": [
{
“name”: “my cool planet”,
“x”: 42,
“y”: 42,
“owner”: 1,
“ship_count”: 23
}
],
"expeditions": [
{
“id”: 1000,
“origin”: “my boring planet”,
“destination”: “my cool planet”,
“turns_remaining”: 3,
“owner”: 2,
“ship_count”: 18
}
]
}</code>
</pre>
<h3>Player numbers are rotated so that you are always player 1.</h3>
<h3>Note that player numbers are 1-based.</h3>
<h3>Neutral planets exist, they dont have an owner (not in JSON, null, …)</h3>
</div>
{% endblock %}