-
Notifications
You must be signed in to change notification settings - Fork 0
/
fifteen.html
50 lines (41 loc) · 2.15 KB
/
fifteen.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--
CSE 190 M, Spring 2009
Homework 6: Fifteen Puzzle
-->
<head>
<title>Fifteen Puzzle</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="fifteen.css" />
<link rel="shortcut icon" type="image/gif" href="fifteen.gif" />
<script src="//cdnjs.cloudflare.com/ajax/libs/prototype/1.7.2/prototype.js" type="text/javascript"></script>
<script src="fifteen.js" type="text/javascript"></script>
</head>
<body>
<h1>CSE 190 M Fifteen Puzzle</h1>
<p class="explanation">
The goal of the fifteen puzzle is to un-jumble its fifteen squares by repeatedly making moves that slide squares into the empty space. How quickly can you solve it?
</p>
<div id="overall">
<div id="puzzlearea">
<!-- the following are the fifteen puzzle pieces -->
<div>1</div> <div>2</div> <div>3</div> <div>4</div>
<div>5</div> <div>6</div> <div>7</div> <div>8</div>
<div>9</div> <div>10</div> <div>11</div> <div>12</div>
<div>13</div> <div>14</div> <div>15</div>
</div>
<div id="controls">
<button id="shufflebutton">Shuffle</button>
</div>
</div>
<p class="explanation">
American puzzle author and mathematician Sam Loyd is often falsely credited with creating the puzzle; indeed, Loyd claimed from 1891 until his death in 1911 that he invented it. The puzzle was actually created around 1874 by Noyes Palmer Chapman, a postmaster in Canastota, New York.
</p>
<div id="w3c">
<a href="https://validator.w3.org/check/referer"><img src="https://www.cs.washington.edu/education/courses/cse190m/09sp/images/w3c-xhtml.png" alt="Valid XHTML 1.1" /></a>
<a href="https://jigsaw.w3.org/css-validator/check/referer"><img src="https://www.cs.washington.edu/education/courses/cse190m/09sp/images/w3c-css.png" alt="Valid CSS" /></a>
<a href="https://webster.cs.washington.edu/jslint/"><img src="https://www.cs.washington.edu/education/courses/cse190m/09sp/images/jslint.png" alt="JavaScript Lint" /></a>
</div>
</body>
</html>