implementing game logic

This commit is contained in:
2020-04-12 15:27:05 +02:00
parent 663457d4bc
commit 2862e73e19
6 changed files with 106 additions and 39 deletions

View File

@ -9,7 +9,10 @@
<br>
<strong>Player {{player}} view</strong><br>
<strong> Table </strong><br>
{{played_cards}}
{% for key,value in played_cards.items() %}
|| {{key.name}}: {{value}}
{% endfor %}
||
<br>
<strong> Your cards: </strong>
<ul>
@ -21,7 +24,9 @@
{% 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>
{% if playerActive %}
<a href="/player/{{player}}/play/{{loop.index0}}">play card {{loop.index}}&lt;{{card}}&gt;</a>
{% endif %}
</li>
{% endfor %}
<!--