starting reworking
This commit is contained in:
@ -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}}<{{card}}></a>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% if choose_trump_color %}
|
||||
<strong>Choose Trump Color:</strong>
|
||||
<a href="/player/{{player}}/set_trump/r">Red></a>
|
||||
<a href="/player/{{player}}/set_trump/g">Green></a>
|
||||
<a href="/player/{{player}}/set_trump/b">Blue></a>
|
||||
<a href="/player/{{player}}/set_trump/y">Yellow ></a>
|
||||
{% endif %}
|
||||
<!--
|
||||
<li>
|
||||
<strong>Movie by IMDB code</strong><br>
|
||||
|
Reference in New Issue
Block a user