-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
300 lines (289 loc) · 11.1 KB
/
index.html
File metadata and controls
300 lines (289 loc) · 11.1 KB
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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="An interactive number guessing game that reads your mind!"
/>
<meta
name="keywords"
content="number game, mind reading,Mind Reader Game, MindReaderGame, MindReader, interactive, fun , guessing game, number guessing, brain teaser, puzzle, logic game, mental challenge, entertainment, online game, web game
Ibbu's MindReader, Mind Reader by Ibbu, Ibbu Mind Reader Game"
/>
<meta name="author" content="Ibbu" />
<meta
name="google-site-verification"
content="omlcZUXvtAyi4gW2ThbRT7KbX7Azt6ydu_XxseouWOw"
/>
<title>MindReader - Number Guessing Game</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css"
/>
<link rel="stylesheet" type="text/css" href="sources/guess.css" />
</head>
<body>
<!-- Animated Background -->
<div class="bg-container">
<div class="gradient-orb orb-1"></div>
<div class="gradient-orb orb-2"></div>
<div class="gradient-orb orb-3"></div>
<div class="gradient-orb orb-4"></div>
<!-- <div class="mesh-gradient"></div> -->
</div>
<!-- Main Container -->
<div class="app-container">
<!-- Header -->
<header class="app-header">
<div class="bismillah-text">بِسْمِ اللهِ الرَّحْمٰنِ الرَّحِيْمِ</div>
<div class="brand-container">
<div class="brand-icon">
<svg
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<path
d="M9.5 2A2.5 2.5 0 0 1 12 4.5v15a2.5 2.5 0 0 1-4.96.44 2.5 2.5 0 0 1-2.96-3.08 3 3 0 0 1-.34-5.58 2.5 2.5 0 0 1 1.32-4.24 2.5 2.5 0 0 1 1.98-3A2.5 2.5 0 0 1 9.5 2Z"
/>
<path
d="M14.5 2A2.5 2.5 0 0 0 12 4.5v15a2.5 2.5 0 0 0 4.96.44 2.5 2.5 0 0 0 2.96-3.08 3 3 0 0 0 .34-5.58 2.5 2.5 0 0 0-1.32-4.24 2.5 2.5 0 0 0-1.98-3A2.5 2.5 0 0 0 14.5 2Z"
/>
</svg>
</div>
<h1 class="brand-title">
<span class="brand-mind">Mind</span
><span class="brand-reader">Reader</span>
</h1>
</div>
<p class="brand-subtitle">
I can read the number in your mind using just 4 questions
</p>
</header>
<!-- Game Content -->
<main class="game-main">
<!-- Welcome Screen -->
<div id="mainpage" class="screen welcome-screen active">
<div class="welcome-content">
<div class="welcome-icon">
<div class="icon-glow"></div>
<i
class="fas fa-cogs"
style="font-size: 1.5rem; color: currentColor"
></i>
</div>
<h2 class="welcome-title">Think of any number from 0 to 15</h2>
<p class="welcome-description">
Keep it secret in your mind, and I'll guess it in exactly 4 steps
using the power of Ibbu algorithm!
</p>
<button class="primary-btn start-btn" onclick="startGame()">
<span class="btn-text">Start Mind Reading</span>
<div class="btn-icon">
<svg
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<path d="M5 12h14M12 5l7 7-7 7" />
</svg>
</div>
</button>
</div>
</div>
<!-- Game Steps -->
<div id="step1" class="screen step-screen">
<div class="step-content">
<div class="step-progress">
<div class="progress-indicator">
<span class="current-step">1</span>
<span class="step-divider">/</span>
<span class="total-steps">4</span>
</div>
<div class="progress-track">
<div class="progress-fill" style="width: 25%"></div>
</div>
</div>
<h2 class="step-title">Is your number in this list?</h2>
<div class="numbers-container">
<div class="number-list"></div>
</div>
<div class="action-buttons">
<button class="secondary-btn" onclick="handleAnswer(0, 0)">
<span class="btn-text">No, not there</span>
</button>
<button class="primary-btn" onclick="handleAnswer(0, 1)">
<span class="btn-text">Yes, it's there!</span>
</button>
</div>
</div>
</div>
<div id="step2" class="screen step-screen">
<div class="step-content">
<div class="step-progress">
<div class="progress-indicator">
<span class="current-step">2</span>
<span class="step-divider">/</span>
<span class="total-steps">4</span>
</div>
<div class="progress-track">
<div class="progress-fill" style="width: 50%"></div>
</div>
</div>
<h2 class="step-title">Is your number in this list?</h2>
<div class="numbers-container">
<div class="number-list"></div>
</div>
<div class="action-buttons">
<button class="secondary-btn" onclick="handleAnswer(1, 0)">
<span class="btn-text">No, not there</span>
</button>
<button class="primary-btn" onclick="handleAnswer(1, 2)">
<span class="btn-text">Yes, it's there!</span>
</button>
</div>
</div>
</div>
<div id="step3" class="screen step-screen">
<div class="step-content">
<div class="step-progress">
<div class="progress-indicator">
<span class="current-step">3</span>
<span class="step-divider">/</span>
<span class="total-steps">4</span>
</div>
<div class="progress-track">
<div class="progress-fill" style="width: 75%"></div>
</div>
</div>
<h2 class="step-title">Is your number in this list?</h2>
<div class="numbers-container">
<div class="number-list"></div>
</div>
<div class="action-buttons">
<button class="secondary-btn" onclick="handleAnswer(2, 0)">
<span class="btn-text">No, not there</span>
</button>
<button class="primary-btn" onclick="handleAnswer(2, 4)">
<span class="btn-text">Yes, it's there!</span>
</button>
</div>
</div>
</div>
<div id="step4" class="screen step-screen">
<div class="step-content">
<div class="step-progress">
<div class="progress-indicator">
<span class="current-step">4</span>
<span class="step-divider">/</span>
<span class="total-steps">4</span>
</div>
<div class="progress-track">
<div class="progress-fill" style="width: 100%"></div>
</div>
</div>
<h2 class="step-title">Final question - Is your number here?</h2>
<div class="numbers-container">
<div class="number-list"></div>
</div>
<div class="action-buttons">
<button class="secondary-btn" onclick="handleAnswer(3, 0)">
<span class="btn-text">No, not there</span>
</button>
<button class="primary-btn" onclick="handleAnswer(3, 8)">
<span class="btn-text">Yes, it's there!</span>
</button>
</div>
</div>
</div>
<!-- Loading Screen -->
<div id="loader" class="screen loading-screen">
<div class="loading-content">
<div class="loading-spinner">
<div class="spinner-ring"></div>
<div class="spinner-ring"></div>
<div class="spinner-ring"></div>
</div>
<h3 class="loading-title">Reading your mind...</h3>
<p class="loading-subtitle">Analyzing your responses</p>
</div>
</div>
<!-- Result Screen -->
<div id="result-screen" class="screen result-screen">
<div class="result-content">
<div class="result-icon">
<div class="success-glow"></div>
<svg
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<path d="M9 12l2 2 4-4" />
<circle cx="12" cy="12" r="10" />
</svg>
</div>
<h2 class="result-title">I knew it!</h2>
<div class="result-reveal">
<span class="reveal-text">The number you thought of was:</span>
<div id="ans" class="answer-number"></div>
</div>
<button
id="restart"
class="primary-btn restart-btn"
onclick="reset()"
>
<span class="btn-text">Play Again</span>
<div class="btn-icon">
<svg
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<path
d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"
/>
<path d="M21 3v5h-5" />
<path
d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"
/>
<path d="M3 21v-5h5" />
</svg>
</div>
</button>
</div>
</div>
</main>
<!-- Footer -->
<footer class="app-footer">
<p>
Made with ❤️ by <span class="author-name">Ibbu</span>
<a
href="https://github.com/Mohammadibbu/GuessMaster/"
target="_blank"
aria-label="GitHub"
style="color: #a3a3a3; margin: 0 0.3rem; text-decoration: none"
>
<i class="fab fa-github"></i>
</a>
</p>
<p style="margin: 0.3rem 0 0; font-size: 0.85rem; color: #737373">
© 2025 Ibbu. All rights reserved.
</p>
</footer>
</div>
<!-- Scripts -->
<script type="text/javascript" src="sources/guess.js"></script>
</body>
</html>