-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
63 lines (57 loc) · 2.42 KB
/
index.html
File metadata and controls
63 lines (57 loc) · 2.42 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Alphabet 2048 Game</title>
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<div class="container">
<header>
<h1>2A1B aka Alphabet 2048!</h1>
<p>Join letters and get to Z! (A + A = B, B + B = C, etc.)</p>
<p class="mobile-instructions">Swipe to move tiles on mobile!</p>
</header>
<div class="game-info">
<div class="score-container">
<div class="score-box">
<div class="score-label">Score</div>
<div id="score">0</div>
</div>
<div class="score-box">
<div class="score-label">Best</div>
<div id="best">0</div>
</div>
</div>
<button id="new-game-btn">New Game</button>
</div>
<div class="game-container">
<div id="game-board" class="game-board">
<!-- 4x4 grid will be generated by JavaScript -->
</div>
<div id="game-over" class="game-over hidden">
<div class="game-over-content">
<h2>Game Over!</h2>
<p>Final Score: <span id="final-score">0</span></p>
<button id="restart-btn">Try Again</button>
</div>
</div>
<div id="game-won" class="game-won hidden">
<div class="game-won-content">
<h2>You reached Z!</h2>
<p>Congratulations! Final Score: <span id="won-score">0</span></p>
<button id="continue-btn">Continue Playing</button>
<button id="new-game-won-btn">New Game</button>
</div>
</div>
</div>
<footer>
<p><a href="https://pplx.ai/raghu" target="_blank" rel="noopener noreferrer">Get your Free Perplexity Pro and Comet!</a></p>
<p>Built at 3 AM on a September Saturday 🌙</p>
<p>Created by <a href="https://roguetex.github.io/" target="_blank" rel="noopener noreferrer">Raghu</a> & <a href="https://github.com/andykim080" target="_blank" rel="noopener noreferrer">Andy</a></p>
</footer>
</div>
<script src="js/game.js"></script>
</body>
</html>