قسمتی از کد html :
<form id=”levels” name=”levels” action=”#”>
<fieldset>
<legend>Change Levels</legend>
</fieldset>
<fieldset>
<input type=”radio” name=”level” id=”level0″ onclick=”setlevel(0)” />
<label for=”level0″><b>Level 0: </b>Computer is totally dumb.</label>
</fieldset>
<fieldset>
<input type=”radio” name=”level” id=”level1″ onclick=”setlevel(1)” checked=”checked” />
<label for=”level1″><b>Level 1: </b>Computer is smarter.</label>
</fieldset>
<fieldset>
<input type=”radio” name=”level” id=”level2″ onclick=”setlevel(2)” />
<label for=”level2″><b>Level 2: </b>You <em>may</em> win (only when you start).</label>
</fieldset>
<fieldset>
<input type=”radio” name=”level” id=”level3″ onclick=”setlevel(3)” />
<label for=”level3″><b>Level 3: </b>Computer <em>never</em> loses.</label>
</fieldset>
</form>
بازی تیک تک تو با جاوا اسکریپت tic tac toe