Skip to content

Instantly share code, notes, and snippets.

@kwatch
Last active December 16, 2015 00:18
Show Gist options
  • Select an option

  • Save kwatch/8da3eab556b144b8d101 to your computer and use it in GitHub Desktop.

Select an option

Save kwatch/8da3eab556b144b8d101 to your computer and use it in GitHub Desktop.
15puzzle.html
<html>
<head>
<meta charset="utf-8" />
<title>15 Puzzle</title>
<link rel="stylesheet" type="text/css" href="main.css" />
</head>
<body>
<div id="main-content">
<table id="puzzle">
<tbody>
<tr>
<td id="cell-1" class="cell"></td>
<td id="cell-2" class="cell"></td>
<td id="cell-3" class="cell"></td>
<td id="cell-4" class="cell"></td>
</tr>
<tr>
<td id="cell-5" class="cell"></td>
<td id="cell-6" class="cell"></td>
<td id="cell-7" class="cell"></td>
<td id="cell-8" class="cell"></td>
</tr>
<tr>
<td id="cell-9" class="cell"></td>
<td id="cell-10" class="cell"></td>
<td id="cell-11" class="cell"></td>
<td id="cell-12" class="cell"></td>
</tr>
<tr>
<td id="cell-13" class="cell">13</td>
<td id="cell-14" class="cell">14</td>
<td id="cell-15" class="cell">15</td>
<td id="cell-16" class="cell">16</td>
</tr>
</tbody>
</table>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="15puzzle.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment