-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
70 lines (62 loc) · 2.03 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
64
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="shortcut icon" type="image/png" href="https://i.ibb.co/Qjy44cf/Picture1.png"/>
<meta charset="UTF-8">
<title>Tic Tac Toe - By Tarun Ravi</title>
<style>
canvas {
padding-bottom: 10px;
padding-top: 10px;
margin-left: auto;
margin-right: auto;
display: block;
}
#wrapper {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.button {
background-color: #19bd9c;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
.button2 {
background-color: #2d3e52;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
</style>
</head>
<body onload="resizeCanvas();">
<canvas id="canvas" ></canvas>
</body>
<body>
<script src="main.js"></script>
<div id="wrapper">
<input type="button" class="button" value="Code / Directions"
onclick="window.location.href = window.location.href = 'https://github.com/MyWorldRules/Tic-Tac-Toe-AI';"/>
<input type="button" id = "trainAi" class="button" value="Train A.I." onclick="trainAI()"/>
<input type="button" id = "playAI" class="button" value="Reset Game" onclick="playAI()"/>
<input type="button" id = "showVal" class="button" value="Show Values" onclick="enableValues()"/>
<input type="button" id = "Generation" class="button2" value="A.I. Generation: 0"/>
</div>
</body>
</html>