From e0019ca18c441083371e39d58531850d6970165b Mon Sep 17 00:00:00 2001 From: Sachi <89895559+ssachis@users.noreply.github.com> Date: Sat, 8 Jan 2022 22:39:26 +0530 Subject: [PATCH 01/11] Create assets --- Games/Game_02/assets | 1 + 1 file changed, 1 insertion(+) create mode 100644 Games/Game_02/assets diff --git a/Games/Game_02/assets b/Games/Game_02/assets new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/Games/Game_02/assets @@ -0,0 +1 @@ + From c6d03a1905c1475d21f4dd938d1b916ea25bd24d Mon Sep 17 00:00:00 2001 From: Sachi <89895559+ssachis@users.noreply.github.com> Date: Sat, 8 Jan 2022 22:40:16 +0530 Subject: [PATCH 02/11] Create assets --- Games/Game_01/assets | 1 + 1 file changed, 1 insertion(+) create mode 100644 Games/Game_01/assets diff --git a/Games/Game_01/assets b/Games/Game_01/assets new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/Games/Game_01/assets @@ -0,0 +1 @@ + From 0c3fd7ee638a7e6d4d42cd1c0092b6e0875825b6 Mon Sep 17 00:00:00 2001 From: Sachi <89895559+ssachis@users.noreply.github.com> Date: Sat, 8 Jan 2022 22:41:15 +0530 Subject: [PATCH 03/11] Add files via upload --- Games/Game_01/index.js | 225 ++++++++++++++++++++++++++++++++++++++ Games/Game_01/sodoku.html | 105 ++++++++++++++++++ Games/Game_01/styles.css | 107 ++++++++++++++++++ 3 files changed, 437 insertions(+) create mode 100644 Games/Game_01/index.js create mode 100644 Games/Game_01/sodoku.html create mode 100644 Games/Game_01/styles.css diff --git a/Games/Game_01/index.js b/Games/Game_01/index.js new file mode 100644 index 00000000..7620991e --- /dev/null +++ b/Games/Game_01/index.js @@ -0,0 +1,225 @@ +const easy = [ + "6------7------5-2------1---362----81--96-----71--9-4-5-2---651---78----345-------", + "685329174971485326234761859362574981549618732718293465823946517197852643456137298" + ]; + const medium = [ + "--9-------4----6-758-31----15--4-36-------4-8----9-------75----3-------1--2--3--", + "619472583243985617587316924158247369926531478734698152891754236365829741472163895" + ]; + const hard = [ + "-1-5-------97-42----5----7-5---3---7-6--2-41---8--5---1-4------2-3-----9-7----8--", + "712583694639714258845269173521436987367928415498175326184697532253841769976352841" + ]; + var timer; + var timeRemaining; + var lives; + var selectedNum; + var selectedTiles; + var disableSelect; + window.onload=function(){ + + +id("start").addEventListener("click",startGame); +for(let i=0;i17 && tile.id<27)||(tile.id>44 && tile.id<54)){ + tile.classList.add("bottomborder"); + } + if((tile.id+1)%9==3 ||(tile.id+1)%9==6 ){ + tile.classList.add("rightborder"); + } + id("board").appendChild(tile); + } + + +} + +function updateMove(){ + if(selectedTiles && selectedNum){ + selectedTiles.textContent=selectedNum.textContent; + if(checkCorrect(selectedTiles)){ + + selectedTiles.classList.remove("selected"); + + selectedNum.classList.remove("selected"); + selectedTiles=null; + selectedNum=null; + if(checkDone()){ + endGame(); + } + + }else{ + disableSelect=true; + selectedTiles.classList.add("incorrect"); + setTimeout(function(){ + disableSelect=false; + selectedTiles.classList.remove("incorrect"); + selectedTiles.classList.remove("selected"); + selectedTiles.classList.remove("selected"); + selectedTiles.textContent=""; + selectedTiles=null; + selectedNum=null; + + },1000); + + + } + + } +} +function checkDone(){ + let tile=qsa(".tile"); + for(let i=0;i + + + + + + Sodoku + + + + + +
+

SUDOKU

+
+
+

Choose difficulty:

+ + + +
+
+

Choose time:

+ + + +
+
+

Choose theme:

+ + +
+
+ +
+
+

+

+
+
+
+ + +
+ + diff --git a/Games/Game_01/styles.css b/Games/Game_01/styles.css new file mode 100644 index 00000000..e40130d9 --- /dev/null +++ b/Games/Game_01/styles.css @@ -0,0 +1,107 @@ +.hidden { + display: none; +} +body.dark { + background-color: rgb(45, 100, 117); + color: white; +} +.header { + text-align: center; + padding-bottom: 20px; + padding-top: 10px; + border-bottom: 1px solid green; +} +#A { + font-size: 40px; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, + Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; +} +#B { + font-size: 27px; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, + Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; +} + +#label { + font-size: 23px; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, + Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; +} +#start { + background: #ecf4ff; + + border-radius: 50em; + color: green; + margin-top: 2em; + top: 30em; + width: 17%; + height: 3em; + text-align: center; + z-index: 6; +} +#setup-game { + display: flex; + justify-content: center; +} +#setup-game > * { + margin-bottom: 7px; + padding-left: 20px; + padding-right: 20px; +} +p#timer { + font-size: 25px; + font-weight: bold; + text-align: center; +} +p#lives { + font-size: 25px; + font-weight: bold; + text-align: center; +} +#game { + display: flex; + justify-content: center; +} +#number-container > p { + border: 1px solid black; + border-radius: 20%; + width: 60px; + height: 60px; + font-size: 40pt; + margin-left: 1200px; + margin-top: 5px; + margin-bottom: 5px; +} +#board { + padding-top: 10px; + margin-top: 10px; + display: flex; + flex-wrap: wrap; + justify-content: center; + align-content: flex-start; + margin: 0 315px 500px; + width: 600px; + height: 100px; + float: left; +} +.tile { + border: 1px solid black; + width: 60px; + height: 60px; + text-align: center; + margin: 0px; + vertical-align: middle; + font-size: 40pt; +} +p.selected { + background-color: lightblue; +} +p.incorrect { + color: red; +} +.rightborder { + border-right: 4px solid black; +} +.bottomborder { + border-bottom: 4px solid black; +} From 0a1ccf31d651429fc361b1cc86e85c9453545cf4 Mon Sep 17 00:00:00 2001 From: Sachi <89895559+ssachis@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:35:41 +0530 Subject: [PATCH 04/11] Update and rename assets to README.md --- Games/Game_01/README.md | 4 ++++ Games/Game_01/assets | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 Games/Game_01/README.md delete mode 100644 Games/Game_01/assets diff --git a/Games/Game_01/README.md b/Games/Game_01/README.md new file mode 100644 index 00000000..8b142838 --- /dev/null +++ b/Games/Game_01/README.md @@ -0,0 +1,4 @@ + + +https://user-images.githubusercontent.com/89895559/148755705-4ddf9cf7-bc77-42d4-a912-962035dbafe7.mp4 + diff --git a/Games/Game_01/assets b/Games/Game_01/assets deleted file mode 100644 index 8b137891..00000000 --- a/Games/Game_01/assets +++ /dev/null @@ -1 +0,0 @@ - From ec0d9cd02979078375fd31b75f181b200d8e100a Mon Sep 17 00:00:00 2001 From: Sachi <89895559+ssachis@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:36:28 +0530 Subject: [PATCH 05/11] Create h --- Games/Game_01/assets/h | 1 + 1 file changed, 1 insertion(+) create mode 100644 Games/Game_01/assets/h diff --git a/Games/Game_01/assets/h b/Games/Game_01/assets/h new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/Games/Game_01/assets/h @@ -0,0 +1 @@ + From f3ef9271ead09c32531549d7e978b27715f2d59c Mon Sep 17 00:00:00 2001 From: Sachi <89895559+ssachis@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:36:55 +0530 Subject: [PATCH 06/11] Add files via upload --- Games/Game_01/assets/index.js | 225 +++++++++++++++++++++++++++++++ Games/Game_01/assets/sodoku.html | 105 +++++++++++++++ Games/Game_01/assets/styles.css | 107 +++++++++++++++ 3 files changed, 437 insertions(+) create mode 100644 Games/Game_01/assets/index.js create mode 100644 Games/Game_01/assets/sodoku.html create mode 100644 Games/Game_01/assets/styles.css diff --git a/Games/Game_01/assets/index.js b/Games/Game_01/assets/index.js new file mode 100644 index 00000000..7620991e --- /dev/null +++ b/Games/Game_01/assets/index.js @@ -0,0 +1,225 @@ +const easy = [ + "6------7------5-2------1---362----81--96-----71--9-4-5-2---651---78----345-------", + "685329174971485326234761859362574981549618732718293465823946517197852643456137298" + ]; + const medium = [ + "--9-------4----6-758-31----15--4-36-------4-8----9-------75----3-------1--2--3--", + "619472583243985617587316924158247369926531478734698152891754236365829741472163895" + ]; + const hard = [ + "-1-5-------97-42----5----7-5---3---7-6--2-41---8--5---1-4------2-3-----9-7----8--", + "712583694639714258845269173521436987367928415498175326184697532253841769976352841" + ]; + var timer; + var timeRemaining; + var lives; + var selectedNum; + var selectedTiles; + var disableSelect; + window.onload=function(){ + + +id("start").addEventListener("click",startGame); +for(let i=0;i17 && tile.id<27)||(tile.id>44 && tile.id<54)){ + tile.classList.add("bottomborder"); + } + if((tile.id+1)%9==3 ||(tile.id+1)%9==6 ){ + tile.classList.add("rightborder"); + } + id("board").appendChild(tile); + } + + +} + +function updateMove(){ + if(selectedTiles && selectedNum){ + selectedTiles.textContent=selectedNum.textContent; + if(checkCorrect(selectedTiles)){ + + selectedTiles.classList.remove("selected"); + + selectedNum.classList.remove("selected"); + selectedTiles=null; + selectedNum=null; + if(checkDone()){ + endGame(); + } + + }else{ + disableSelect=true; + selectedTiles.classList.add("incorrect"); + setTimeout(function(){ + disableSelect=false; + selectedTiles.classList.remove("incorrect"); + selectedTiles.classList.remove("selected"); + selectedTiles.classList.remove("selected"); + selectedTiles.textContent=""; + selectedTiles=null; + selectedNum=null; + + },1000); + + + } + + } +} +function checkDone(){ + let tile=qsa(".tile"); + for(let i=0;i + + + + + + Sodoku + + + + + +
+

SUDOKU

+
+
+

Choose difficulty:

+ + + +
+
+

Choose time:

+ + + +
+
+

Choose theme:

+ + +
+
+ +
+
+

+

+
+
+
+ + +
+ + diff --git a/Games/Game_01/assets/styles.css b/Games/Game_01/assets/styles.css new file mode 100644 index 00000000..e40130d9 --- /dev/null +++ b/Games/Game_01/assets/styles.css @@ -0,0 +1,107 @@ +.hidden { + display: none; +} +body.dark { + background-color: rgb(45, 100, 117); + color: white; +} +.header { + text-align: center; + padding-bottom: 20px; + padding-top: 10px; + border-bottom: 1px solid green; +} +#A { + font-size: 40px; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, + Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; +} +#B { + font-size: 27px; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, + Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; +} + +#label { + font-size: 23px; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, + Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; +} +#start { + background: #ecf4ff; + + border-radius: 50em; + color: green; + margin-top: 2em; + top: 30em; + width: 17%; + height: 3em; + text-align: center; + z-index: 6; +} +#setup-game { + display: flex; + justify-content: center; +} +#setup-game > * { + margin-bottom: 7px; + padding-left: 20px; + padding-right: 20px; +} +p#timer { + font-size: 25px; + font-weight: bold; + text-align: center; +} +p#lives { + font-size: 25px; + font-weight: bold; + text-align: center; +} +#game { + display: flex; + justify-content: center; +} +#number-container > p { + border: 1px solid black; + border-radius: 20%; + width: 60px; + height: 60px; + font-size: 40pt; + margin-left: 1200px; + margin-top: 5px; + margin-bottom: 5px; +} +#board { + padding-top: 10px; + margin-top: 10px; + display: flex; + flex-wrap: wrap; + justify-content: center; + align-content: flex-start; + margin: 0 315px 500px; + width: 600px; + height: 100px; + float: left; +} +.tile { + border: 1px solid black; + width: 60px; + height: 60px; + text-align: center; + margin: 0px; + vertical-align: middle; + font-size: 40pt; +} +p.selected { + background-color: lightblue; +} +p.incorrect { + color: red; +} +.rightborder { + border-right: 4px solid black; +} +.bottomborder { + border-bottom: 4px solid black; +} From 65debb689cb3bad18e3cb1a5b7256cad74687a08 Mon Sep 17 00:00:00 2001 From: Sachi <89895559+ssachis@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:37:19 +0530 Subject: [PATCH 07/11] Delete index.js --- Games/Game_01/index.js | 225 ----------------------------------------- 1 file changed, 225 deletions(-) delete mode 100644 Games/Game_01/index.js diff --git a/Games/Game_01/index.js b/Games/Game_01/index.js deleted file mode 100644 index 7620991e..00000000 --- a/Games/Game_01/index.js +++ /dev/null @@ -1,225 +0,0 @@ -const easy = [ - "6------7------5-2------1---362----81--96-----71--9-4-5-2---651---78----345-------", - "685329174971485326234761859362574981549618732718293465823946517197852643456137298" - ]; - const medium = [ - "--9-------4----6-758-31----15--4-36-------4-8----9-------75----3-------1--2--3--", - "619472583243985617587316924158247369926531478734698152891754236365829741472163895" - ]; - const hard = [ - "-1-5-------97-42----5----7-5---3---7-6--2-41---8--5---1-4------2-3-----9-7----8--", - "712583694639714258845269173521436987367928415498175326184697532253841769976352841" - ]; - var timer; - var timeRemaining; - var lives; - var selectedNum; - var selectedTiles; - var disableSelect; - window.onload=function(){ - - -id("start").addEventListener("click",startGame); -for(let i=0;i17 && tile.id<27)||(tile.id>44 && tile.id<54)){ - tile.classList.add("bottomborder"); - } - if((tile.id+1)%9==3 ||(tile.id+1)%9==6 ){ - tile.classList.add("rightborder"); - } - id("board").appendChild(tile); - } - - -} - -function updateMove(){ - if(selectedTiles && selectedNum){ - selectedTiles.textContent=selectedNum.textContent; - if(checkCorrect(selectedTiles)){ - - selectedTiles.classList.remove("selected"); - - selectedNum.classList.remove("selected"); - selectedTiles=null; - selectedNum=null; - if(checkDone()){ - endGame(); - } - - }else{ - disableSelect=true; - selectedTiles.classList.add("incorrect"); - setTimeout(function(){ - disableSelect=false; - selectedTiles.classList.remove("incorrect"); - selectedTiles.classList.remove("selected"); - selectedTiles.classList.remove("selected"); - selectedTiles.textContent=""; - selectedTiles=null; - selectedNum=null; - - },1000); - - - } - - } -} -function checkDone(){ - let tile=qsa(".tile"); - for(let i=0;i Date: Mon, 10 Jan 2022 16:37:27 +0530 Subject: [PATCH 08/11] Delete sodoku.html --- Games/Game_01/sodoku.html | 105 -------------------------------------- 1 file changed, 105 deletions(-) delete mode 100644 Games/Game_01/sodoku.html diff --git a/Games/Game_01/sodoku.html b/Games/Game_01/sodoku.html deleted file mode 100644 index ae355f97..00000000 --- a/Games/Game_01/sodoku.html +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - - Sodoku - - - - - -
-

SUDOKU

-
-
-

Choose difficulty:

- - - -
-
-

Choose time:

- - - -
-
-

Choose theme:

- - -
-
- -
-
-

-

-
-
-
- - -
- - From dd0b67ceeb6b991ce40fe61590105e6f31656b10 Mon Sep 17 00:00:00 2001 From: Sachi <89895559+ssachis@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:37:34 +0530 Subject: [PATCH 09/11] Delete styles.css --- Games/Game_01/styles.css | 107 --------------------------------------- 1 file changed, 107 deletions(-) delete mode 100644 Games/Game_01/styles.css diff --git a/Games/Game_01/styles.css b/Games/Game_01/styles.css deleted file mode 100644 index e40130d9..00000000 --- a/Games/Game_01/styles.css +++ /dev/null @@ -1,107 +0,0 @@ -.hidden { - display: none; -} -body.dark { - background-color: rgb(45, 100, 117); - color: white; -} -.header { - text-align: center; - padding-bottom: 20px; - padding-top: 10px; - border-bottom: 1px solid green; -} -#A { - font-size: 40px; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, - Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; -} -#B { - font-size: 27px; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, - Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; -} - -#label { - font-size: 23px; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, - Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; -} -#start { - background: #ecf4ff; - - border-radius: 50em; - color: green; - margin-top: 2em; - top: 30em; - width: 17%; - height: 3em; - text-align: center; - z-index: 6; -} -#setup-game { - display: flex; - justify-content: center; -} -#setup-game > * { - margin-bottom: 7px; - padding-left: 20px; - padding-right: 20px; -} -p#timer { - font-size: 25px; - font-weight: bold; - text-align: center; -} -p#lives { - font-size: 25px; - font-weight: bold; - text-align: center; -} -#game { - display: flex; - justify-content: center; -} -#number-container > p { - border: 1px solid black; - border-radius: 20%; - width: 60px; - height: 60px; - font-size: 40pt; - margin-left: 1200px; - margin-top: 5px; - margin-bottom: 5px; -} -#board { - padding-top: 10px; - margin-top: 10px; - display: flex; - flex-wrap: wrap; - justify-content: center; - align-content: flex-start; - margin: 0 315px 500px; - width: 600px; - height: 100px; - float: left; -} -.tile { - border: 1px solid black; - width: 60px; - height: 60px; - text-align: center; - margin: 0px; - vertical-align: middle; - font-size: 40pt; -} -p.selected { - background-color: lightblue; -} -p.incorrect { - color: red; -} -.rightborder { - border-right: 4px solid black; -} -.bottomborder { - border-bottom: 4px solid black; -} From d33ae4eb8b5e15875bcc9cc6b4a6b2cd434ea28e Mon Sep 17 00:00:00 2001 From: Sachi <89895559+ssachis@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:37:43 +0530 Subject: [PATCH 10/11] Delete h --- Games/Game_01/assets/h | 1 - 1 file changed, 1 deletion(-) delete mode 100644 Games/Game_01/assets/h diff --git a/Games/Game_01/assets/h b/Games/Game_01/assets/h deleted file mode 100644 index 8b137891..00000000 --- a/Games/Game_01/assets/h +++ /dev/null @@ -1 +0,0 @@ - From 6c775f47148ccb4a91a018dc90fe19c18d586074 Mon Sep 17 00:00:00 2001 From: Sachi <89895559+ssachis@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:38:11 +0530 Subject: [PATCH 11/11] Delete assets --- Games/Game_02/assets | 1 - 1 file changed, 1 deletion(-) delete mode 100644 Games/Game_02/assets diff --git a/Games/Game_02/assets b/Games/Game_02/assets deleted file mode 100644 index 8b137891..00000000 --- a/Games/Game_02/assets +++ /dev/null @@ -1 +0,0 @@ -