Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,7 @@ <h1>HOW CAN I WIN AT TIC-TAC-TOE?</h1>
You also have to watch where the computer puts its O. That could change what you do next. If the computer gets two Os in a row, you have to put your next X in the last empty square in that row, or the computer will win. You are forced to play in a particular square or lose the game.

If you always pay attention and look ahead, you'll never lose a game of Tic-Tac-Toe. You may not win, but at least you'll tie.</p>
<table>
<tr>
<th><button type="button" class="player1-btn start-btn" name="button" onclick="singlePlayer()">Single Player</button></th>
<th><button type="button" class="player2-btn start-btn" name="button" onclick="twoPlayer()">2 Players</button></th>
</tr>
</table>

</div>
</div>
<!-- instruction phase ends here -->
Expand Down Expand Up @@ -181,6 +176,7 @@ <h2 id = "move">PLAYER MOVE!</h2>
</select>
<div class="div-end-of-game">
<button onclick="reset_board()">RESET BOARD</button>
<button onclick="undoMove()">UNDO MOVE</button> <!-- Add this line -->
</div>
<h2 id="winner"></h2>
</div>
Expand Down