-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
112 lines (105 loc) · 4.35 KB
/
index.html
File metadata and controls
112 lines (105 loc) · 4.35 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Rummikub - Play Online</title>
<link rel="stylesheet" href="/src/styles/main.css">
</head>
<body>
<div id="app">
<!-- Start Screen -->
<div id="start-screen" class="modal">
<div class="modal-content">
<h1>Rummikub</h1>
<p>Arrange tiles into runs and groups to win!</p>
<button id="start-btn" class="btn btn-primary">Start Game</button>
<div class="rules">
<h3>Quick Rules:</h3>
<ul>
<li><strong>Run:</strong> 3+ consecutive numbers, same color</li>
<li><strong>Group:</strong> 3-4 same numbers, different colors</li>
<li><strong>Initial Meld:</strong> First play must total 30+ points</li>
<li><strong>Win:</strong> Empty your rack first!</li>
</ul>
</div>
</div>
</div>
<!-- Game Screen -->
<div id="game-screen" class="hidden">
<!-- Container 0: Computer Area -->
<div class="container0">
<div class="computer-info">
<p>Computer</p>
<div>
<img src="/images/tileBack.png" alt="Tile back">
<span id="computer-count">x14</span>
</div>
</div>
<div class="computer-rack" id="computer-rack">
<!-- Computer tiles (tile backs) will be added here -->
</div>
</div>
<!-- Computer Action Message -->
<div id="computer-action-message" class="action-message hidden">
<!-- Action messages will appear here -->
</div>
<!-- Container 1: Header -->
<div class="container1">
<h1>Rummikub</h1>
<div class="ai-mode-toggle">
<label class="toggle-switch">
<input type="checkbox" id="ai-mode-toggle">
<span class="toggle-slider"></span>
</label>
<label for="ai-mode-toggle">AI Mode</label>
</div>
</div>
<!-- Container 2: Playing Area -->
<div class="container2">
<div class="groups" id="groups-area">
<!-- Groups will be added here -->
</div>
<div class="runs" id="runs-area">
<!-- Runs will be added here -->
</div>
<div class="pouch">
<button id="draw-btn" class="btn-draw">Draw</button>
<div class="pouch-info">
<img src="/images/tileBack.png" alt="Tile back">
<span id="pouch-count">x76</span>
</div>
</div>
</div>
<!-- Container 3: Player Area -->
<div class="container3">
<div class="player-info">
<p>Player</p>
<div>
<img src="/images/tileBack.png" alt="Tile back">
<span id="player-count">x14</span>
</div>
</div>
<div class="player-rack" id="player-rack">
<!-- Player tiles will be added here -->
</div>
<button id="done-btn" class="btn btn-done">Done</button>
</div>
<!-- Control Buttons -->
<div class="controls">
<button id="sort-btn" class="btn btn-secondary">Sort by Color</button>
<button id="sort-number-btn" class="btn btn-secondary">Sort by Number</button>
<button id="undo-btn" class="btn btn-secondary">Undo</button>
</div>
</div>
<!-- Win Screen -->
<div id="win-screen" class="modal hidden">
<div class="modal-content">
<h2 id="winner-text">You Win!</h2>
<button id="restart-btn" class="btn btn-primary">Restart!</button>
</div>
</div>
</div>
<script type="module" src="/src/main.js"></script>
</body>
</html>