-
Notifications
You must be signed in to change notification settings - Fork 0
/
vsComputer.html
84 lines (79 loc) · 4.33 KB
/
vsComputer.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
<link rel="stylesheet" href="style.css">
<title>Tic Tac Toe</title>
</head>
<body class="bg-dark text-light">
<div id="preloader"></div>
<div class="container-fluid position-fixed top-0 start-0">
<a href="index.html" class="btn btn-outline-light m-3">
← Back
</a>
</div>
<div class="container text-center mt-5">
<h1 class="display-3 text-warning">Tic-tac-toe <br> vs Computer </h1>
<p class="lead mt-3 mb-5" id="player">
<b>Your Turn </b>
</p>
<div class="d-flex justify-content-center align-items-center">
<table class="text-center table-sm" style="padding: auto;">
<tr>
<td>
<button class="btn btn-outline-primary btn-lg game-btn" style="height: 100px; width: 100px;" id="btn1" value="1"> </button>
</td>
<td>
<button class="btn btn-outline-primary btn-lg game-btn" style="height: 100px; width: 100px;" id="btn2" value="2"></button>
</td>
<td>
<button class="btn btn-outline-primary btn-lg game-btn" style="height: 100px; width: 100px;" id="btn3" value="3"> </button>
</td>
</tr>
<tr>
<td>
<button class="btn btn-outline-primary btn-lg game-btn" style="height: 100px; width: 100px;" id="btn4" value="4"> </button>
</td>
<td>
<button class="btn btn-outline-primary btn-lg game-btn" style="height: 100px; width: 100px;" id="btn5" value="5"> </button>
</td>
<td>
<button class="btn btn-outline-primary btn-lg game-btn" style="height: 100px; width: 100px;" id="btn6" value="6"> </button>
</td>
</tr>
<tr>
<td>
<button class="btn btn-outline-primary btn-lg game-btn" style="height: 100px; width: 100px;" id="btn7" value="7"> </button>
</td>
<td>
<button class="btn btn-outline-primary btn-lg game-btn" style="height: 100px; width: 100px;" id="btn8" value="8"> </button>
</td>
<td>
<button class="btn btn-outline-primary btn-lg game-btn" style="height: 100px; width: 100px;" id="btn9" value="9"> </button>
</td>
</tr>
</table>
</div>
<div class="d-flex justify-content-center align-items-center" style="margin: 30px;">
<button class="btn btn-outline-primary btn-lg" onclick="btnReloadClick()"> Restart </button>
</div>
</div>
<footer class="mt-auto bg-secondary text-light py-3">
<div class="container d-flex flex-wrap justify-content-between align-items-center">
<div class="col-md-4 d-flex align-items-center">
<span class="text-light">© 2024 Sadeepa N Herath</span>
</div>
<ul class="nav col-md-4 justify-content-end list-unstyled d-flex">
<li class="ms-3"><a class="text-body-secondary" href="https://github.com/SadeepaNHerath" target="_blank"><i class="bi bi-github"></i></a></li>
<li class="ms-3"><a class="text-body-secondary" href="https://www.tiktok.com/@sadeepanherath?_t=8p3J8dyFl5k&_r=1" target="_blank"><i class="bi bi-tiktok"></i></a></li>
<li class="ms-3"><a class="text-body-secondary" href="https://www.instagram.com/sadeepa_herath_18?igsh=NHg2emxpeHpnZnJu" target="_blank"><i class="bi bi-instagram"></i></a></li>
<li class="ms-3"><a class="text-body-secondary" href="https://www.facebook.com/SadeepaNHerath?mibextid=ZbWKwL" target="_blank"><i class="bi bi-facebook"></i></a></li>
</ul>
</div>
</footer>
<script src="vsComputerApp.js"></script>
</body>
</html>