-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
103 lines (97 loc) · 3.77 KB
/
index.php
File metadata and controls
103 lines (97 loc) · 3.77 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
<?php
// Pattern Match Game - Index
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Pattern Match</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@400;600;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./styles.css" />
<meta name="description" content="Recreate the displayed pattern by arranging the blocks or tiles in the correct order." />
<meta name="theme-color" content="#0f172a" />
</head>
<body>
<header class="site-header">
<div class="container">
<h1>Pattern Match</h1>
<p class="tagline">Recreate the displayed pattern by arranging the tiles.</p>
</div>
</header>
<main class="container">
<section class="controls">
<div class="control-group">
<label for="difficulty">Difficulty</label>
<select id="difficulty" aria-label="Difficulty">
<option value="easy">Easy (3x3)</option>
<option value="medium">Medium (4x4)</option>
<option value="hard">Hard (5x5)</option>
<option value="expert">Expert (6x6)</option>
<option value="master">Master (7x7)</option>
</select>
</div>
<div class="control-group">
<label for="mode">Mode</label>
<select id="mode" aria-label="Mode">
<option value="relaxed">Relaxed</option>
<option value="timed">Timer</option>
</select>
</div>
<div class="control-group">
<label for="fx">Effects</label>
<select id="fx" aria-label="Effects">
<option value="basic">Basic</option>
<option value="animated">Animated</option>
<option value="animated-3d">Animated + 3D</option>
</select>
</div>
<div class="control-group score-group">
<div class="stat"><span id="timer">00:00</span><small>Time</small></div>
<div class="stat"><span id="moves">0</span><small>Moves</small></div>
<div class="stat"><span id="score">0</span><small>Score</small></div>
</div>
<div class="buttons">
<button id="newGame" class="btn primary">New Game</button>
<button id="hint" class="btn">Hint</button>
</div>
</section>
<section class="game">
<div class="pattern">
<h2>Target Pattern</h2>
<div id="targetGrid" class="grid" aria-label="Target pattern"></div>
</div>
<div class="board">
<h2>Your Board</h2>
<div id="playGrid" class="grid" aria-label="Play grid" tabindex="0"></div>
</div>
</section>
<section class="how-to">
<h3>How to Play</h3>
<ol>
<li>Choose a difficulty. Optionally enable Timer mode.</li>
<li>Rearrange tiles on "Your Board" to match the Target Pattern.</li>
<li>Click or tap a tile to select, then click another tile to swap.</li>
<li>Lower time and fewer moves give higher scores.</li>
</ol>
</section>
</main>
<footer class="site-footer">
<div class="container">
<div class="support">
<p><strong>For support, licensing, or custom development inquiries:</strong></p>
<p>Email: <a href="mailto:help@rskworld.in">help@rskworld.in</a>
• Phone/WhatsApp: <a href="https://wa.me/919330539277" target="_blank" rel="noopener">+91 9330539277</a></p>
<p>Website: <a href="https://rskworld.in" target="_blank" rel="noopener">RSK World</a>
• Business Inquiries: <a href="mailto:help@rskworld.in">help@rskworld.in</a></p>
<p>🤝 Contributing: Suggestions and improvements are welcome!</p>
</div>
<div class="meta">
<small>Technologies: JavaScript, HTML5, CSS3 • Category: Puzzle • Difficulty: Beginner</small>
</div>
</div>
</footer>
<script src="./game.js"></script>
</body>
</html>