Number of Players: {{ gamestate.n_players }}

Current Player: {{ gamestate.current_player }}

Game Status: {% if gamestate.game_end %}Ended{% else %}Active{% endif %}

Rounds: {{ gamestate.rounds }}

Days: {{ gamestate.days }}

M
{% for color, number in gamestate.market.items() %} {% if number > 0 %} {% for i in range(0, number) %}
{{ color[:1] }}
{% endfor %} {% endif %} {% endfor %}
{% for factory in gamestate.factories %}
{{ loop.index }}
{% for color, number in factory.items() %} {% if number > 0 %} {% for i in range(0, number) %}
{{ color[:1] }}
{% endfor %} {% endif %} {% endfor %}
{% endfor %}
{% for name, player_data in gamestate.players.items() %}
{% if player_name == name %}

{{ player_name }} (You)

{% else %}

{{ name }}

{% endif %} {% if gamestate.current_player == name %}

(current)

{% endif %} {% if player_data.ready %}

Ready

{% endif %}

Points: {{ player_data.points }}

{% for line in player_data.pattern_lines %}
{% for i in range(0, loop.index) %} {% if line.number > i %}
{{ line.color[:1] }}
{% else %}
_
{% endif %} {% endfor %}
{% endfor %}
{% set colors_base = ['blue', 'yellow', 'red', 'black', 'white'] %} {% for row in player_data.wall %} {% set colors = colors_base[-loop.index0:] + colors_base[:-loop.index0] %} {% for cell in row %} {% set color = colors[loop.index0] + "_bg" %}
{% if cell %}{{ color[:1] }}{% else %}{{ '_' }}{% endif %}
{% endfor %} {% endfor %}
1
1
2
2
2
3
3
{% set floor_count = 0 %} {% for color, number in player_data.floor.items() %} {% if number > 0 %} {% set floor_count = floor_count + number %} {% for i in range(0, number) %}
{{ color[:1] }}
{% endfor %} {% endif %} {% endfor %} {% if floor_count < 7 %} {% set floor_blank_tiles = 7 - floor_count %} {% for i in range(0, floor_blank_tiles) %}
_
{% endfor %} {% endif %}
{% endfor %}
{% if player_name %}

Play area

Playing as: {{ player_name }}

>
{% set current_index = gamestate.player_names.index(player_name) %} {% set next_index = current_index + 1 if current_index + 1 < gamestate.player_names|length else 0 %} Next Player {% endif %}