-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
200 lines (198 loc) · 8.62 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="styles/styles.css">
<link href="https://fonts.googleapis.com/css?family=Nanum+Gothic:400,700|Baloo&display=swap" rel="stylesheet">
<title>Mastermind</title>
</head>
<body>
<main>
<div class="rules-page game-container">
<h1>Mastermind</h1>
<h2 class="wrapper">How To Play</h2>
<ul class="wrapper">
<li><p>Guess the pattern generated by the computer in 8 turns or less to win the game! The pattern is a random combination of 4 colored pins.</p></li>
<li><p>The pattern can have repeating colors.</p></li>
<li><p>Make a guess by placing a row of code pins on the decoding board.</p> </li>
<li><p>Once you click "check" computer will provide feedback by placing
zero to four key pins in the small holes to the right.</p></li>
<li><p>A black key pin is placed for each pin that is correct in both color and position.</p></li>
<li><p>A white key pin is placed for each pin that is correct in color but wrong in position.</p></li>
<li><p>The order of the key pins don't matter.</p></li>
</ul>
<button class="close-rules-button">Close</button>
</div>
<div class="game-container">
<div class="rows wrapper">
<h1>Mastermind</h1>
<div class="top-row row">
<div class="guess-container answer-holder">
<div class="guess-holder guess-holder0"></div>
<div class="guess-holder guess-holder1"></div>
<div class="guess-holder guess-holder2"></div>
<div class="guess-holder guess-holder3"></div>
<div class="answer-cover">
<div class="answer-cover-front">Code Container</div>
<div class="answer-cover-back"></div>
</div>
</div>
<button class="rules-button">Rules</button>
</div>
<div class="row row7">
<div class="guess-container">
<div class="guess-holder guess-holder0" ></div>
<div class="guess-holder guess-holder1" ></div>
<div class="guess-holder guess-holder2" ></div>
<div class="guess-holder guess-holder3" ></div>
</div>
<div class="clue-container">
<div class="clue-holder clue-holder0" ></div>
<div class="clue-holder clue-holder1" ></div>
<div class="clue-holder clue-holder2" ></div>
<div class="clue-holder clue-holder3" ></div>
</div>
<button class="check7">Check</button>
</div>
<div class="row row6">
<div class="guess-container">
<div class="guess-holder guess-holder0" ></div>
<div class="guess-holder guess-holder1" ></div>
<div class="guess-holder guess-holder2" ></div>
<div class="guess-holder guess-holder3" ></div>
</div>
<div class="clue-container">
<div class="clue-holder clue-holder0" ></div>
<div class="clue-holder clue-holder1" ></div>
<div class="clue-holder clue-holder2" ></div>
<div class="clue-holder clue-holder3" ></div>
</div>
<button class="check6">Check</button>
</div>
<div class="row row5">
<div class="guess-container">
<div class="guess-holder guess-holder0" ></div>
<div class="guess-holder guess-holder1" ></div>
<div class="guess-holder guess-holder2" ></div>
<div class="guess-holder guess-holder3" ></div>
</div>
<div class="clue-container">
<div class="clue-holder clue-holder0" ></div>
<div class="clue-holder clue-holder1" ></div>
<div class="clue-holder clue-holder2" ></div>
<div class="clue-holder clue-holder3" ></div>
</div>
<button class="check5">Check</button>
</div>
<div class="row row4">
<div class="guess-container">
<div class="guess-holder guess-holder0" ></div>
<div class="guess-holder guess-holder1" ></div>
<div class="guess-holder guess-holder2" ></div>
<div class="guess-holder guess-holder3" ></div>
</div>
<div class="clue-container">
<div class="clue-holder clue-holder0" ></div>
<div class="clue-holder clue-holder1" ></div>
<div class="clue-holder clue-holder2" ></div>
<div class="clue-holder clue-holder3" ></div>
</div>
<button class="check4">Check</button>
</div>
<div class="row row3">
<div class="guess-container">
<div class="guess-holder guess-holder0" ></div>
<div class="guess-holder guess-holder1" ></div>
<div class="guess-holder guess-holder2" ></div>
<div class="guess-holder guess-holder3" ></div>
</div>
<div class="clue-container">
<div class="clue-holder clue-holder0" ></div>
<div class="clue-holder clue-holder1" ></div>
<div class="clue-holder clue-holder2" ></div>
<div class="clue-holder clue-holder3" ></div>
</div>
<button class="check3">Check</button>
</div>
<div class="row row2">
<div class="guess-container">
<div class="guess-holder guess-holder0" ></div>
<div class="guess-holder guess-holder1" ></div>
<div class="guess-holder guess-holder2" ></div>
<div class="guess-holder guess-holder3" ></div>
</div>
<div class="clue-container">
<div class="clue-holder clue-holder0" ></div>
<div class="clue-holder clue-holder1" ></div>
<div class="clue-holder clue-holder2" ></div>
<div class="clue-holder clue-holder3" ></div>
</div>
<button class="check2">Check</button>
</div>
<div class="row row1">
<div class="guess-container">
<div class="guess-holder guess-holder0" ></div>
<div class="guess-holder guess-holder1" ></div>
<div class="guess-holder guess-holder2" ></div>
<div class="guess-holder guess-holder3" ></div>
</div>
<div class="clue-container">
<div class="clue-holder clue-holder0" ></div>
<div class="clue-holder clue-holder1" ></div>
<div class="clue-holder clue-holder2" ></div>
<div class="clue-holder clue-holder3" ></div>
</div>
<button class="check1">Check</button>
</div>
<div class="row row0">
<div class="guess-container">
<div class="guess-holder guess-holder0" ></div>
<div class="guess-holder guess-holder1" ></div>
<div class="guess-holder guess-holder2" ></div>
<div class="guess-holder guess-holder3" ></div>
</div>
<div class="clue-container">
<div class="clue-holder clue-holder0" ></div>
<div class="clue-holder clue-holder1" ></div>
<div class="clue-holder clue-holder2" ></div>
<div class="clue-holder clue-holder3" ></div>
</div>
<button class="check0">Check</button>
</div>
<div class="row bottom-row">
<form action="">
<div class="pin-container">
<input type="radio" id="1" value="red" name="pin">
<label for="1" class="red pin"></label>
</div>
<div class="pin-container">
<input type="radio" id="2" value="blue" name="pin">
<label for="2" class="blue pin"></label>
</div>
<div class="pin-container">
<input type="radio" id="3" value="yellow" name="pin">
<label for="3" class="yellow pin"></label>
</div>
<div class="pin-container">
<input type="radio" id="4" value="green" name="pin">
<label for="4" class="green pin"></label>
</div>
<div class="pin-container">
<input type="radio" id="5" value="pink" name="pin">
<label for="5" class="pink pin"></label>
</div>
<div class="pin-container">
<input type="radio" id="6" value="white" name="pin">
<label for="6" class="white pin"></label>
</div>
</form>
<button class="start-reset">Start</button>
</div>
</div>
</div>
</main>
<script src="./mastermind.js"></script>
</body>
</html>