-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathindex.html
53 lines (48 loc) · 2.24 KB
/
index.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
51
52
53
<!DOCTYPE HTML>
<html>
<head>
<title>Tic-Tac-Toe AI</title>
<link rel = 'stylesheet' type = 'text/css' href = 'styles/ui.css'>
</head>
<body>
<div class = 'main-container'>
<div class = 'board'>
<!-- data-indx following cell divs represents cell index in 1D array representation -->
<div class='cell' data-indx = "0" ></div>
<div class='cell' data-indx = "1" ></div>
<div class='cell' data-indx = "2" ></div>
<div class='cell' data-indx = "3" ></div>
<div class='cell' data-indx = "4" ></div>
<div class='cell' data-indx = "5" ></div>
<div class='cell' data-indx = "6" ></div>
<div class='cell' data-indx = "7" ></div>
<div class='cell' data-indx = "8" ></div>
</div>
<div class = 'control'>
<!-- div.intial displays the starting controls -->
<div class = 'intial'>
<div class = 'difficulty'>
<span class = 'level not-selected' id = "blind">Blind</span>
<span class = 'level not-selected' id = "novice">Novice</span>
<span class = 'level not-selected' id = "master">Master!</span>
</div>
<div class='start'> Start </div>
</div>
<!-- div.ingame displays in-game messages and controls -->
<div class = 'ingame' id="human">It's your turn ...</div>
<div class = 'ingame' id="ai">
<img src = "imgs/robot.png" id = "robot" class = "robot" />
<p>Waint for it ...</p>
</div>
<div class = 'ingame' id="won">You won !</div>
<div class = 'ingame' id="lost">You lost !</div>
<div class = 'ingame' id="draw">It's a Draw</div>
</div>
</div>
<script src = "scripts/jquery-1.10.1.min.js"></script>
<script src = "scripts/ui.js"></script>
<script src = "scripts/game.js"></script>
<script src = "scripts/ai.js"></script>
<script src = "scripts/control.js"></script>
</body>
</html>