starting reworking

This commit is contained in:
2020-04-13 16:14:36 +02:00
parent 2862e73e19
commit c851d42bd1
6 changed files with 194 additions and 40 deletions

View File

@ -7,10 +7,17 @@
<p class="lead">
Play a nice game of cards?<br>
<br>
<strong>Player {{player}} view</strong><br>
<strong>Player {{player+1}} view</strong><br>
<strong> Table </strong><br>
{% for key,value in played_cards.items() %}
|| {{key.name}}: {{value}}
{% for player,card in played_cards %}
||
{% if player.id == active_player %}
<font color="red">
{% endif %}
{{player.name}}: {{card}}
{% if player.id == active_player %}
</font>
{% endif %}
{% endfor %}
||
<br>
@ -24,11 +31,18 @@
{% for card in cards %}
<li>
<strong>>card {{loop.index}} is: {{card}} </strong><br>
{% if playerActive %}
{% if playerActive and not choose_trump_color %}
<a href="/player/{{player}}/play/{{loop.index0}}">play card {{loop.index}}&lt;{{card}}&gt;</a>
{% endif %}
</li>
{% endfor %}
{% if choose_trump_color %}
<strong>Choose Trump Color:</strong>
<a href="/player/{{player}}/set_trump/r">Red&gt;</a>
<a href="/player/{{player}}/set_trump/g">Green&gt;</a>
<a href="/player/{{player}}/set_trump/b">Blue&gt;</a>
<a href="/player/{{player}}/set_trump/y">Yellow &gt;</a>
{% endif %}
<!--
<li>
<strong>Movie by IMDB code</strong><br>