zulip/static/templates/widgets/tictactoe-widget.handlebars

21 lines
430 B
Handlebars

<h3>Tic Tac Toe</h3>
{{ move_status }}
<br />
<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>