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 %}
<!--

View File

@ -7,7 +7,7 @@
<meta name="description" content="pyramid web application">
<meta name="author" content="Pylons Project">
<title>MovieDB Service</title>
<title>Free Online Gamblingc</title>
<!-- Bootstrap core CSS -->
<link href="//oss.maxcdn.com/libs/twitter-bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">