implemented 'table'

This commit is contained in:
2020-04-06 22:42:31 +02:00
parent 4fa38fabef
commit 989b9bdbf9
4 changed files with 60 additions and 9 deletions

View File

@ -26,6 +26,7 @@
<a href="/control/deal/5">deal 5</a>
<a href="/control/deal/10">deal 10</a>
<a href="/control/deal/12">deal 12</a>
<a href="/control/deal/14">deal 14</a>
<a href="/control/deal/20">deal 20</a>
</li>
</ul>

View File

@ -7,19 +7,24 @@
<p class="lead">
Play a nice game of cards?<br>
<br>
<strong>Player {{player}} view</strong>
<strong>Player {{player}} view</strong><br>
<strong> Table </strong><br>
{{played_cards}}
<br>
<strong> Your cards: </strong>
<ul>
{% for card in cards %}
<li>
<strong>>card {{loop.index}} is: {{card}} </strong><br>
</li>
{% endfor %}
<li>
<strong>Trump Card: {{trump_card}}</strong><br>
<strong>Trump Color: {{trump_color}}</strong><br>
</li>
<!--
{% for card in cards %}
<li>
<strong>>card {{loop.index}} is: {{card}} </strong><br>
<a href="/player/{{player}}/play/{{loop.index0}}">play card {{loop.index}}&lt;{{card}}&gt;</a>
</li>
{% endfor %}
<!--
<li>
<strong>Movie by IMDB code</strong><br>
<a href="/api/movie/tt0096754">GET /api/movie/{imdb_number}</a>