-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
107 lines (106 loc) · 3.71 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Tic-Tac-Toe</title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<div id="container">
<!-- What displays above the game board -->
<header><h1>Tic-Tac-Toe</h1></header>
<main id="board">
<h2 id="Message-Board"></h2>
<!-- Game Board - This is the tic-tac-teo Board -->
<div class="game-container">
<div class="game-board">
</div>
</div>
</main>
<!-- Game controls -->
<div id="game-controls">
<!-- Messeges (Game Controls) -->
<p id="player-one-win-count"></p>
<p id="player-two-win-count"></p>
<p id="player-tied-count"></p>
<form action="" onsubmit="return false">
<!-- Buttons for new game's layout -->
<button id="game-reset">New Game!</button>
<div class="fields">
<div class="game-mode-btn">
<button id="game-mode-3">
Tic-Tac-Toe
</button><button id="game-mode-4" class="active-mode-btn">
Connect 4
</button>
</div>
<!-- custom (Game Controls) -->
<label for="rows">Rows</label><input id="rows" type="number">
<label for="columns">Columns</label><input id="columns" type="number">
<label for="win-condition">Win Condition</label><input id="win-condition" type="number">
<!-- Player's play as (Game Control) -->
<div class="players-symble-container">
<label for="players">Choose who you play as.</label>
<select name="player-1-symble" id="player-1-symble" class="player-symble-otions">
</select>
<select name="player-2-symble" id="player-2-symble" class="player-symble-otions">
</select>
</div>
<!-- AI (Game Control) -->
<div class="ai-settings">
<label for="play-ai">Play the computer</label>
<label class="switch">
<input id="play-ai" type="checkbox" checked>
<span class="slider"></span>
</label>
<div class="ai-setting-players display">
<input
type="radio"
id="ai-player-one"
class="ai-player-options"
name="ai-player"
value="playerOne"
>
<label
for="ai-player-one"
class="ai-player-options">
First Player
</label>
<input
type="radio"
id="ai-player-two"
class="ai-player-options"
name="ai-player"
value="playerTwo"
checked
>
<label
for="ai-player-two"
class="ai-player-options">
Second Player
</label>
</div>
</div>
</div>
<a class="how-to-play-link">How to play!</a>
</form>
</div>
</div>
<!-- 'errer' messages for when user puts an invalid entry-->
<div class="error-message-container">
<p class="error-message">
test
</p>
</div>
<!-- "How to Play" message -->
<div class="how-to-play-container modal-container">
<div class="modal-msg">
<h1>How to play</h1>
<p>Tic-Tac-Toe and Connect 4 are played exactly the same secpept for the board size and the number you need in a row to win.</p>
<a target="_blank" href="https://www.wikihow.com/Play-Tic-Tac-Toe">A comprehensive deirection on how to play with pictures.</a>
</div>
</div>
<script type="module" src="index.js"></script>
</body>
</html>