Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Sudoku Calculator #1829

Merged
merged 1 commit into from
Aug 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Calculators/Sudoku-Calculator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# <p align="center">Sudoku Calculator</p>

## Description :-

- Generates and Calculates Sudoku
- Can solve user given sudoko's as well

## Tech Stacks :-

- HTML
- CSS
- JavaScript
- ConfettiJS Library for confetti effect after solving

## Screenshots :-

![image](../Sudoku-Calculator/screenshot1.png)
![image](../Sudoku-Calculator/screenshot2.png)
![image](../Sudoku-Calculator/screenshot3.png)
166 changes: 166 additions & 0 deletions Calculators/Sudoku-Calculator/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<meta name="description"
content="A simple yet effective and interactive Sudoku-Calculator web app to solve and Visualize Sudoku">
<meta name="keywords"
content="Sudoku-Visualizer, SudokuSolver,backtracking, sudoku solver backtracking, sudoku using backtracking, bracktacking sudoku visualizer, sudoku, vansh-codes, vanshchaurasiya, vansh-codes sudoku solver, vansh-codes sudoku visualizer, sudoku visualizer, sudoku game">
<meta name="robots" content="index, follow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="language" content="English">
<meta property="og:description"
content="A simple yet effective and interactive Sudoku-Visualizer web app to solve and Visualize Sudoku" />
<title>Sudoku Calculator</title>
<link rel="stylesheet" href="style.css" />
<!-- For adding confetti -->
<script src="https://cdn.jsdelivr.net/npm/js-confetti@latest/dist/js-confetti.browser.js"></script>
</head>

<body>

<!-- =============== NAVBAR ======================= -->
<nav id="nav-bar">
<a href="../Sudoku-Calculator/index.html">
<h2>Sudoku Calculator</h2>
</a>
<li id="clear"><span>Clear</span></li>
<li id="randomly-fill" title="generate new sudoku board">
<span>Generate Board</span>
</li>
<li id="solve" title="solve sudoku"><span>Solve</span></li>

<li>
<span class="selected" title="select speed of visualization">Speed</span>
<i class="fa-solid fa-chevron-down"></i>
<ul class="sub-menu">
<li class="speed-options">Fast</li>
<li class="speed-options">Medium</li>
<li class="speed-options">Slow</li>
<li class="speed-options">Xtra Slow</li>
</ul>
</li>
<pre></pre>
</nav>

<!-- =============== MAIN CONTAINER ======================= -->
<div id="main-container">

<!-- ========= SUDOKU BOX ========== -->
<div id="main">
<table id="grid">
<tr class="row">
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<!--row--></tr>

<tr class="row">
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<!--row--></tr>

<tr class="row">
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<!--row--></tr>

<tr class="row">
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<!--row--></tr>

<tr class="row">
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<!--row--></tr>

<tr class="row">
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<!--row--></tr>

<tr class="row">
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<!--row--></tr>
<tr class="row">
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<!--row--></tr>
<tr class="row">
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<td class="cell"><input type="text" maxlength="1" /></td>
<!--row--></tr>
</table>
</div>

</div>
<!-- ========== SCRIPT LINKING ============== -->
<script src="script.js"></script>
</body>
</html>
Binary file added Calculators/Sudoku-Calculator/screenshot1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Calculators/Sudoku-Calculator/screenshot2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Calculators/Sudoku-Calculator/screenshot3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading