-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
199 lines (199 loc) · 8.3 KB
/
index.html
File metadata and controls
199 lines (199 loc) · 8.3 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
<!DOCTYPE html>
<html>
<head>
<title>WHO OWNS WHAT Puzzle Game</title>
<link href="https://fonts.googleapis.com/css2?family=Playpen+Sans&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..72,400;12..72,700&family=Playpen+Sans&display=swap" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="game.css">
<script src="game.js"></script>
</head>
<body>
<header>
<nav>
<a href="#about" class="nav-link"><button class="nav-button">About</button></a>
<a href="#howto" class="nav-link"><button class="nav-button">How to</button></a>
<a href="#play" class="nav-link"><button class="nav-button">Play</button></a>
</nav>
<img src="https://i.postimg.cc/SxgFrsrJ/Thumbnails.png" alt="name of the game"/>
</header>
<section id="info">
<div id="about">About</div>
<p class="description">Hi! I'm a curious and creative developer who loves turning logic and code into fun, interactive experiences. I believe learning should be engaging — and what better way than through games? <br /> This project is a small step in my journey to combine storytelling, design, and programming into meaningful digital creations. With every line of code, I'm exploring how logic puzzles, visuals, and user interaction can come together to spark curiosity and challenge the mind.</p>
<div id="howto">How to play?</div>
<p class="description"> “Who owns What?” is a simple yet challenging logic game where your task is to figure out who owns which colored car based on a set of clues.<br />Use the clues to eliminate possibilities, mark correct matches, and solve the mystery — all with just a few clicks.<br /><br />Click 1: mark a possibility ✅<br />Click 2: rule out the possibility ❌<br />Click 3: resets the cell 🔄<br /><br />Each level gets a bit more interesting.</p>
</section>
<section id="readytoplay">
<div id="readytoplay1">
<h1 id="play">READY TO PLAY?</h1>
<div id="cards">
<a href="#game-easy">
<button onclick="LevelEasy()" class="levels">
<img src="https://i.postimg.cc/pTZdYxpC/easy.jpg" alt="level-easy" id="easy"/>
<p class="text">Level: Easy</p>
</button>
</a>
<a href="#game-medium">
<button onclick="LevelMedium()" class="levels">
<img src="https://i.postimg.cc/NFCfS48r/medium.jpg" alt="level-medium" id="medium"/>
<p class="text">Level: Medium</p>
</button>
</a>
<a href="#game-hard">
<button onclick="LevelHard()" class="levels">
<img src="https://i.postimg.cc/QCddfP73/hard.jpg" alt="level-hard" id="hard"/>
<p class="text">Level: Hard</p>
</button>
</a>
</div>
</div>
<div id="game-easy" class="game">
<h1>Level: EASY</h1>
<div class="question">
<h3>Q: Who Owns Which Car?</h3>
<p>Clues:<br/>1. P does not own blue or green<br/>2. Q owns either red or green<br/>3. S owns yellow</p>
<table>
<tr>
<th>Person</th>
<th>Red</th>
<th>Blue</th>
<th>Green</th>
<th>Yellow</th>
</tr>
<tr>
<th>P</th>
<td class="cell" id="easy-P-one"></td>
<td class="cell" id="easy-P-two"></td>
<td class="cell" id="easy-P-three"></td>
<td class="cell" id="easy-P-four"></td>
</tr>
<tr>
<th>Q</th>
<td class="cell" id="easy-Q-one"></td>
<td class="cell" id="easy-Q-two"></td>
<td class="cell" id="easy-Q-three"></td>
<td class="cell" id="easy-Q-four"></td>
</tr>
<tr>
<th>R</th>
<td class="cell" id="easy-R-one"></td>
<td class="cell" id="easy-R-two"></td>
<td class="cell" id="easy-R-three"></td>
<td class="cell" id="easy-R-four"></td>
</tr>
<tr>
<th>S</th>
<td class="cell" id="easy-S-one"></td>
<td class="cell" id="easy-S-two"></td>
<td class="cell" id="easy-S-three"></td>
<td class="cell" id="easy-S-four"></td>
</tr>
</table>
<div class="A-C">
<button class="answer" onclick="CheckAnswerEasy()">Check Answer</button>
<button class="clear" onclick="Reset()">Reset</button>
<p id="resulteasy"></p>
</div>
</div>
</div>
<div id="game-medium" class="game">
<h1>Level: Medium</h1>
<div class="question">
<h3>Q: Who Likes Which Fruit?</h3>
<p>Clues:<br/>1. P does not like Apple or Banana.<br/>2. Q likes Mango.<br/>3. R likes either Apple or Orange.<br/>4. S does not like Orange.</p>
<table>
<tr>
<th>Person</th>
<th>Apple</th>
<th>Banana</th>
<th>Orange</th>
<th>Mango</th>
</tr>
<tr>
<th>P</th>
<td class="cell" id="medium-P-one"></td>
<td class="cell" id="medium-P-two"></td>
<td class="cell" id="medium-P-three"></td>
<td class="cell" id="medium-P-four"></td>
</tr>
<tr>
<th>Q</th>
<td class="cell" id="medium-Q-one"></td>
<td class="cell" id="medium-Q-two"></td>
<td class="cell" id="medium-Q-three"></td>
<td class="cell" id="medium-Q-four"></td>
</tr>
<tr>
<th>R</th>
<td class="cell" id="medium-R-one"></td>
<td class="cell" id="medium-R-two"></td>
<td class="cell" id="medium-R-three"></td>
<td class="cell" id="medium-R-four"></td>
</tr>
<tr>
<th>S</th>
<td class="cell" id="medium-S-one"></td>
<td class="cell" id="medium-S-two"></td>
<td class="cell" id="medium-S-three"></td>
<td class="cell" id="medium-S-four"></td>
</tr>
</table>
<div class="A-C">
<button class="answer" onclick="CheckAnswerMedium()">Check Answer</button>
<button class="clear" onclick="Reset()">Reset</button>
<p id="resultmedium"></p>
</div>
</div>
</div>
<div id="game-hard" class="game">
<h1>Level: Hard</h1>
<div class="question">
<h3>Q: Who Owns Which Animal?</h3>
<p>Clues:<br/>1. P owns a pet that has fur but is not a cat.<br/>2. Q doesn’t like animals that fly.<br/>3. R owns a pet that barks.<br/>4. S is allergic to fur.</p>
<table>
<tr>
<th>Person</th>
<th>Dog</th>
<th>Cat</th>
<th>Rabbit</th>
<th>Parrot</th>
</tr>
<tr>
<th>P</th>
<td class="cell" id="hard-P-one"></td>
<td class="cell" id="hard-P-two"></td>
<td class="cell" id="hard-P-three"></td>
<td class="cell" id="hard-P-four"></td>
</tr>
<tr>
<th>Q</th>
<td class="cell" id="hard-Q-one"></td>
<td class="cell" id="hard-Q-two"></td>
<td class="cell" id="hard-Q-three"></td>
<td class="cell" id="hard-Q-four"></td>
</tr>
<tr>
<th>R</th>
<td class="cell" id="hard-R-one"></td>
<td class="cell" id="hard-R-two"></td>
<td class="cell" id="hard-R-three"></td>
<td class="cell" id="hard-R-four"></td>
</tr>
<tr>
<th>S</th>
<td class="cell" id="hard-S-one"></td>
<td class="cell" id="hard-S-two"></td>
<td class="cell" id="hard-S-three"></td>
<td class="cell" id="hard-S-four"></td>
</tr>
</table>
<div class="A-C">
<button class="answer" onclick="CheckAnswerHard()">Check Answer</button>
<button class="clear" onclick="Reset()">Reset</button>
<p id="resulthard"></p>
</div>
</div>
</div>
</section>
</body>
</html>