{% extends 'cwa/base.html.j2' %} {%- block body %}

Go: {{ game.human_id }}

{% for row in range(boardsize) %} {% endfor %} {% for col in range(boardsize) %} {% endfor %} {% if boardsize == 19 %} {% for y in [3, 9, 15] %} {% for x in [3, 9, 15] %} {% endfor %} {% endfor %} {% elif boardsize == 13 %} {% for y, x in [[3, 3], [3, 9], [9, 3], [9, 9], [6, 6]] %} {% endfor %} {% elif boardsize == 9 %} {% for y, x in [[2, 2], [2, 6], [6, 2], [6, 6], [4, 4]] %} {% endfor %} {% endif %} {% for row in range(boardsize) %} {% for col in range(boardsize) %} {% if field[row][col] == 0 and current_player == colormap[player.uuid] and not abandoned and score is none %} {% elif field[row][col] == 1 %} {% elif field[row][col] == 2 %} {% elif field[row][col] == 5 %} {% elif field[row][col] == 6 %} {% endif %} {% endfor %} {% endfor %} {% for row in range(boardsize) %} {% for col in range(boardsize) %} {% if territory[row][col] == 3 %} {% elif territory[row][col] == 4 %} {% endif %} {% endfor %} {% endfor %}
{% if abandoned %} Game abandoned {% elif score is not none %} {% if score > 0 %} Black won with {{ score }} points. {% else %} White won with {{ -score }} points. {% endif %} {% elif current_player == colormap[player.uuid] %} {% endif %}
Refresh {%- endblock %}