Spaces:
Sleeping
Sleeping
File size: 1,399 Bytes
4dd7406 | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sudoku Game</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1>🎮 Sudoku Game</h1>
<div class="controls">
<select id="difficulty">
<option value="easy">Easy</option>
<option value="medium" selected>Medium</option>
<option value="hard">Hard</option>
</select>
<button onclick="newGame()">New Game</button>
<button onclick="validateBoard()">Check</button>
<button onclick="getHint()">Hint</button>
<button onclick="showSolution()">Solution</button>
<button onclick="clearBoard()">Clear All</button>
</div>
<div id="message" class="message"></div>
<div id="sudoku-board" class="sudoku-board"></div>
<div class="instructions">
<p>💡 <strong>How to play:</strong></p>
<ul>
<li>Click on any empty cell and type a number (1-9)</li>
<li>Use arrow keys to navigate between cells</li>
<li>Press Delete or Backspace to clear a cell</li>
<li>Press Tab to move to the next empty cell</li>
<li>Or use the number buttons below</li>
</ul>
</div>
</div>
<script src="script.js"></script>
</body>
</html> |