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

@ -14,10 +14,19 @@
<strong>>{{loop.index}}: {{card}} </strong> |
{% endfor %}
<li>
<br>
<strong>Trump Card: {{trump_card}}</strong><br>
<strong>Trump Color: {{trump_color}}</strong><br>
</li>
<br>
{% if trick_finished %}
Winner: {{trick_winner}} with Card {{highest_card}}
<a href="/control/next_trick/">start next trick</a>
{% endif %}
{% if hand_finished %}
Winner: {{trick_winner}} with Card {{highest_card}}
<a href="/control/next_hand/">start next hand</a>
{% endif %}
<!--
<ul>
<li>
<strong>Deal cards</strong><br>
@ -30,6 +39,7 @@
<a href="/control/deal/20">deal 20</a>
</li>
</ul>
-->
</p>
<p class="disclaimer">

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>