planet-wars/backend/templates/help/help_4.html.tera

43 lines
879 B
Text
Raw Normal View History

2020-04-07 11:31:28 +02:00
{% extends "help/base" %}
{% block header %}
Format: Game state
{% endblock %}
{% block help %}
<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 %}