forked from andishaa/tic-tac-toe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (61 loc) · 2.43 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
<!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" href="./css/style.css">
<title>Tic Tac Toe - Game</title>
</head>
<body>
<header>
<h1>Tic-Tac-Toe</h1>
<p>A classic game from your childhood</p>
</header>
<main>
<div class="gameboard-wrapper">
<div class="players player1">
<label for="player1-name">Player 1</label>
<input type="text" id="player1-name" name="player1name" placeholder="Your name here...">
<input type="button" id="p1-name-btn" value="Change name">
</div>
<div class="players player2">
<label for="player2-name">Player 2</label>
<input type="text" id="player2-name" name="player2name" placeholder="Your name here...">
<input type="button" id="p2-name-btn" value="Change name">
</div>
<div class="players computer">
<span>Computer</span>
</div>
<div class="game-status">
Player 1's turn
</div>
<div class="game-mode">
<button class="mode" onclick="game.modeSwitch(); gameUI.switchUImode()">Play vs Computer</button>
</div>
<div class="gameBoard">
<div class="box r b" id="0"></div>
<div class="box r b" id="1"></div>
<div class="box b" id="2"></div>
<div class="box r b" id="3"></div>
<div class="box r b" id="4"></div>
<div class="box b" id="5"></div>
<div class="box r" id="6"></div>
<div class="box r" id="7"></div>
<div class="box" id="8"></div>
</div>
<div class="game-controls">
<button class="new-game" onclick="game.newGame()">New Game</button>
</div>
</div>
</main>
<footer>
Copyright ©
<script>document.write(new Date().getFullYear())</script> <a href="https://github.com/andishaa"
target="_blank">andisha</a>
<p>This project is a part of <a href="https://www.theodinproject.com/" target="_blank">The Odin Project</a>
curriculum</p>
</footer>
<script src="./js/script.js"></script>
</body>
</html>