planet-wars/backend/templates/info/info_4.html.tera

43 lines
879 B
Text
Raw Permalink Normal View History

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