Skip to content
Open

Css #24

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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Sudoku-Game

Website: https://it-is-skywalkerl.github.io/Sudoku-Game/
This is a website where you can play Sudoku.

This is a website where you can play sudoku.
Website: https://it-is-skywalkerl.github.io/Sudoku-Game/

<br>
Features:
Expand Down
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
/>

<title>Sudoku Game</title>

</head>

<header id="header">
<div class="row">
<div class="col-12" style="padding-top: 1vw; text-align: center;">
Expand Down Expand Up @@ -78,6 +80,7 @@ <h3 id="time-colon">time: </h3>
<div class="row" style="justify-content: center; padding-bottom: 1vmin;">
<button id="start-button">Start Game</button>
</div>

</header>

<div id="body">
Expand Down
3 changes: 3 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Making random board whenever called(needed)
function makeRandomBoard(difficulty_level) {

// This is one valid board
final_board = "685329174971485326234761859362574981549618732718293465823946517197852643456137298";

Expand Down Expand Up @@ -367,6 +368,7 @@ function updateMove() {

// Function to check if all tiles are filled and follow all rules of Sudoku
function allCorrect() {

let tiles = qsa(".tile");
for(let tmp = 0; tmp < 81; tmp++) {
if(tiles[tmp].textContent==0) return false;
Expand Down Expand Up @@ -417,6 +419,7 @@ function checkIfValidPosition(tile) {

// Function to end current game
function endGame() {

// Win/Loss message to be shown
id("win_loss").classList.remove("hidden");
if(time_remaining > 0) {
Expand Down
2 changes: 2 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
@tailwind components;
@tailwind utilities;


body {
background: #ffffff;
font-family: "Baloo Tamma 2", cursive;
Expand All @@ -10,6 +11,7 @@ body {
transition-duration: 1s;
}


header {
background: #a7ffae;
}
Expand Down