zulip/static/templates/widgets/tictactoe_widget.hbs

20 lines
432 B
Handlebars

<h3>Tic Tac Toe</h3>
<h4>{{ move_status }}</h4>
<table class="tictactoe">
{{#each squares}}
<tr>
{{#each this}}
<td class="tictactoe">
<div>
<button {{#if this.disabled}}disabled{{/if}} class="tictactoe-square" data-idx="{{ idx }}">
{{ this.val }}
</button>
</div>
</td>
{{/each}}
</tr>
{{/each}}
</table>