-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
63 lines (50 loc) · 2.46 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
54
55
56
57
58
59
60
61
62
63
<!-- Author: satz_._-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="./style.css">
<title>TicTacToe</title>
</head>
<body style="background-color: #333A45;">
<div class = "top-frame">
<button type="button" class="sr-btn" id="edit">Edit State</button>
<h1 class="heading" id="head"></h1>
<button type="button" class="sr-btn" id="sr"></button>
</div>
<div class="nerd-stats-box" id="nerd-stats"></div>
<div class="board-container" id="container"></div>
<div class="bottom-frame">
<div class="settings">
<input class="cbox" type="checkbox" id="ab-switch">
<label class="clabel" for="ab-switch"> AlphaBeta Pruning<label><br>
<input class="cbox" type="checkbox" id="d-switch" value="depth">
<label class ="clabel" for="d-switch">Depth Restriction<label>
<input id="d-val" type="number" min="1" max="8" step="1" value="3" />
<input type="submit" for="d-val" value="Set" id="d-set">
<br>
<label class="clabel" for="dimension-setter">Board Size</label>
<select class="selector"id="dimension-setter">
<option id="set-3" value="3" selected>3</option>
<option id="set-4" value="4">4</option>
<option id="set-5" value="5">5</option>
</select>
<label class="clable" for="max-match">Match Cells</label>
<select class="selector" id="max-match">
<option id="max-3" value="three" selected>3</option>
<option id="max-4" value="four">4</option>
<option id="max-5" value="five">5</option>
</select>
</div>
</div>
<p style="color: #FFEEAD;font-family: 'Courier New', Courier, monospace; font-size: 15px;">
TicTacToe - AI, using MiniMax Algorithm.<br>
For board size above 3x3:<br>
Turn on <b>Alphabeta Prunning</b> and <b>Depth restriction</b>, or you can <b>Edit State</b> until fewer<b><i>(lesser or equal to 9)</i></b> empty cells left, or else it will freeze your browser.
<br>
</p>
</body>
<script src="./index.js"> </script>
</html>