2025-01-04 21:58:26 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
2025-01-05 00:14:59 +01:00
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
2025-01-04 21:58:26 +01:00
|
|
|
<title>Minesweeper</title>
|
2025-01-05 00:14:59 +01:00
|
|
|
<link rel="stylesheet" href="styles.css" />
|
|
|
|
</head>
|
2025-01-04 21:58:26 +01:00
|
|
|
|
2025-01-05 00:14:59 +01:00
|
|
|
<body>
|
2025-01-04 22:31:47 +01:00
|
|
|
<div id="settings">
|
2025-01-05 00:14:59 +01:00
|
|
|
<h1>Minesweeper</h1>
|
|
|
|
<label for="gridSize">Grid Size:</label>
|
|
|
|
<input
|
|
|
|
type="number"
|
|
|
|
id="gridSize"
|
|
|
|
min="1"
|
|
|
|
max="25"
|
|
|
|
value="9"
|
|
|
|
aria-label="Grid Size"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<label for="bombs">Number of Bombs:</label>
|
|
|
|
<input
|
|
|
|
type="range"
|
|
|
|
id="bombs"
|
|
|
|
min="1"
|
|
|
|
max="80"
|
|
|
|
value="20"
|
|
|
|
aria-label="Number of Bombs"
|
|
|
|
/>
|
2025-01-05 01:12:33 +01:00
|
|
|
<span id="bombsValue">20</span>
|
2025-01-05 00:14:59 +01:00
|
|
|
|
|
|
|
<button id="startGame">Start Game</button>
|
2025-01-04 22:31:47 +01:00
|
|
|
</div>
|
2025-01-05 00:14:59 +01:00
|
|
|
|
2025-01-05 00:13:09 +01:00
|
|
|
<div class="container">
|
2025-01-05 00:14:59 +01:00
|
|
|
<canvas id="game"></canvas>
|
2025-01-05 00:13:09 +01:00
|
|
|
</div>
|
2025-01-04 21:58:26 +01:00
|
|
|
|
2025-01-05 00:14:59 +01:00
|
|
|
<script src="script.js"></script>
|
2025-01-05 01:12:33 +01:00
|
|
|
<script src="counter.js"></script>
|
2025-01-05 00:14:59 +01:00
|
|
|
</body>
|
2025-01-04 22:31:47 +01:00
|
|
|
</html>
|