First working version of CSS generation. Bot not that good yet. Haha.

This commit is contained in:
2019-07-25 20:24:13 -04:00
parent a391633172
commit 99dfd7fc82
8 changed files with 6904 additions and 118 deletions

19
template.tictactoe.html Normal file
View File

@@ -0,0 +1,19 @@
<html>
<head>
<title>Tic Tac Toe CSS</title>
<link rel="stylesheet" type="text/css" href="tictactoe.css">
</head>
<body>
<div class="tic-tac-toe">
{% for turn in range(9) %}
<!-- turn-{{turn}} -->
{% for row in range(3) %}
{% for col in range(3) %}
<input class="field-{{row * 3 + col}} row-{{row}} col-{{col}} turn-{{turn}}" id="block-{{turn}}-{{row}}-{{col}}" type="radio">
<label class="turn-{{turn}}" for="block-{{turn}}-{{row}}-{{col}}"></label>
{% endfor %}
{% endfor %}
{% endfor %}
</div>
</body>
</html>