From c851d42bd1a1f480ad38e02ae1e5f4e678154514 Mon Sep 17 00:00:00 2001
From: Stefan Rupp
Trump Card: {{trump_card}}
Trump Color: {{trump_color}}
-
+ {% if trick_finished %}
+ Winner: {{trick_winner}} with Card {{highest_card}}
+ start next trick
+ {% endif %}
+ {% if hand_finished %}
+ Winner: {{trick_winner}} with Card {{highest_card}}
+ start next hand
+ {% endif %}
+
diff --git a/templates/home/player.html b/templates/home/player.html index 73acbc2..d2a03ef 100644 --- a/templates/home/player.html +++ b/templates/home/player.html @@ -7,10 +7,17 @@
Play a nice game of cards?
- Player {{player}} view
+ Player {{player+1}} view
Table
- {% for key,value in played_cards.items() %}
- || {{key.name}}: {{value}}
+ {% for player,card in played_cards %}
+ ||
+ {% if player.id == active_player %}
+
+ {% endif %}
+ {{player.name}}: {{card}}
+ {% if player.id == active_player %}
+
+ {% endif %}
{% endfor %}
||
@@ -24,11 +31,18 @@
{% for card in cards %}