From 40eaa0e4c0811125a01cf865cc66af8d7c3dcbb9 Mon Sep 17 00:00:00 2001
From: Rishit Patel <49016509+imrishit98@users.noreply.github.com>
Date: Mon, 18 Nov 2019 22:03:58 -0500
Subject: [PATCH 01/19] Update index.html

---
 index.html | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/index.html b/index.html
index 7f6f924..f4dafec 100644
--- a/index.html
+++ b/index.html
@@ -76,8 +76,10 @@ <h1>Projects:</h1>
         <input type="button" class="myBtn" value="Hi-Lo game" onclick="window.open('Hi-Lo Game/','_blank')"><br>
         <input type="button" class="myBtn" value="Canadorio Pizza website"
             onclick="window.open('Canadorio-Pizza-Website/','_blank')"><br>
-        <input type="button" class="myBtn" value="Simple Math Program"
+        <input type="button" class="myBtn" value="Simple math program"
             onclick="window.open('Simple Math Program/','_blank')"><br>
+        <input type="button" class="myBtn" value="Simple snake game"
+            onclick="window.open('Simple JavaScipt Snake game/','_blank')"><br>
         <br><a href="https://github.com/imrishit98/" target="_blank" rel="noopener noreferrer"><i class="fab fa-github"
                 style="font-size: 41px;"></i></a><br>
         <br><b>Made with ❤️ by <a href="https://rishitpatel.com" target="_blank" rel="noopener noreferrer">Rishit
@@ -85,4 +87,4 @@ <h1>Projects:</h1>
     </div>
 </body>
 
-</html>
\ No newline at end of file
+</html>

From ce02ae62f901ca69b8a6b657091496013dbe7127 Mon Sep 17 00:00:00 2001
From: Rishit Patel <49016509+imrishit98@users.noreply.github.com>
Date: Wed, 20 Nov 2019 09:48:40 -0500
Subject: [PATCH 02/19] Update index.html

---
 Simple JavaScipt Snake game/index.html | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/Simple JavaScipt Snake game/index.html b/Simple JavaScipt Snake game/index.html
index 34a646c..8414579 100644
--- a/Simple JavaScipt Snake game/index.html	
+++ b/Simple JavaScipt Snake game/index.html	
@@ -22,10 +22,6 @@
 
         #gameC {
             display: block;
-            position: absolute;
-            top: 50%;
-            left: 50%;
-            transform: translate(-50%, -50%);
             border-style: solid;
             border-width: 5px;
             border-color: red;
@@ -55,4 +51,4 @@ <h1>SIMPLE SNAKE GAME</h1>
 
 </body>
 
-</html>
\ No newline at end of file
+</html>

From 1cf38de5caf694096ffce32cfce47330aad41c9a Mon Sep 17 00:00:00 2001
From: Rishit Patel <49016509+imrishit98@users.noreply.github.com>
Date: Wed, 20 Nov 2019 09:53:15 -0500
Subject: [PATCH 03/19] Update index.html

---
 Simple JavaScipt Snake game/index.html | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/Simple JavaScipt Snake game/index.html b/Simple JavaScipt Snake game/index.html
index 8414579..eb7ec02 100644
--- a/Simple JavaScipt Snake game/index.html	
+++ b/Simple JavaScipt Snake game/index.html	
@@ -40,15 +40,10 @@
 </head>
 
 <body>
-    <div class="mainDiv">
-        <h1>SIMPLE SNAKE GAME</h1>
+        <h1>SIMPLE SNAKE GAME</h1><br>
         <canvas id="gameC" width="400" height="400">
-        </canvas>
-        <div class="score">
-            <span>Score: <span id="score"></span></span>
-        </div>
-    </div>
-
+        </canvas><br>
+            <span>Score: <span id="score"></span></span><br>
 </body>
 
 </html>

From 21aff52cc0b76ec44e0aefd7bbe2932299e6387f Mon Sep 17 00:00:00 2001
From: Rishit Patel <49016509+imrishit98@users.noreply.github.com>
Date: Wed, 20 Nov 2019 09:56:28 -0500
Subject: [PATCH 04/19] Update index.html

---
 Simple JavaScipt Snake game/index.html | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/Simple JavaScipt Snake game/index.html b/Simple JavaScipt Snake game/index.html
index eb7ec02..17a4f66 100644
--- a/Simple JavaScipt Snake game/index.html	
+++ b/Simple JavaScipt Snake game/index.html	
@@ -30,7 +30,10 @@
         h1 {
             font-size: 51px;
         }
-
+        
+        .center {
+            margin: 0 auto;
+        }
         .score {
             color: white;
             font-size: 21px;
@@ -41,9 +44,11 @@
 
 <body>
         <h1>SIMPLE SNAKE GAME</h1><br>
+    <div class="center">
         <canvas id="gameC" width="400" height="400">
         </canvas><br>
-            <span>Score: <span id="score"></span></span><br>
+    </div>
+        <span>Score: <span id="score"></span></span><br>
 </body>
 
 </html>

From b57873f4b69e6323a0011876197aa197e3f9b7e8 Mon Sep 17 00:00:00 2001
From: Rishit Patel <49016509+imrishit98@users.noreply.github.com>
Date: Wed, 20 Nov 2019 10:00:43 -0500
Subject: [PATCH 05/19] Update index.html

---
 Simple JavaScipt Snake game/index.html | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Simple JavaScipt Snake game/index.html b/Simple JavaScipt Snake game/index.html
index 17a4f66..99f9985 100644
--- a/Simple JavaScipt Snake game/index.html	
+++ b/Simple JavaScipt Snake game/index.html	
@@ -32,6 +32,7 @@
         }
         
         .center {
+            width: 100%;
             margin: 0 auto;
         }
         .score {

From 5c7560f516de9231aae298c7373b1a2fd63bc4ea Mon Sep 17 00:00:00 2001
From: Rishit Patel <49016509+imrishit98@users.noreply.github.com>
Date: Wed, 20 Nov 2019 10:21:04 -0500
Subject: [PATCH 06/19] Update index.html

---
 Simple JavaScipt Snake game/index.html | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Simple JavaScipt Snake game/index.html b/Simple JavaScipt Snake game/index.html
index 99f9985..78f5e9e 100644
--- a/Simple JavaScipt Snake game/index.html	
+++ b/Simple JavaScipt Snake game/index.html	
@@ -34,6 +34,7 @@
         .center {
             width: 100%;
             margin: 0 auto;
+            padding-left: 540px
         }
         .score {
             color: white;

From ad3bb3f95e6bc525d118c9bc767706fe14bff4b0 Mon Sep 17 00:00:00 2001
From: Rishit Patel <49016509+imrishit98@users.noreply.github.com>
Date: Thu, 21 Nov 2019 13:22:58 -0500
Subject: [PATCH 07/19] Add files via upload

---
 Escape the spade/escapethespadelogo.png | Bin 0 -> 173918 bytes
 Escape the spade/index.html             |  37 ++++++++++++++++++++++++
 Escape the spade/script.js              |  16 ++++++++++
 Escape the spade/style.css              |  20 +++++++++++++
 Escape the spade/suit-1.png             | Bin 0 -> 29835 bytes
 Escape the spade/suit-2.png             | Bin 0 -> 22921 bytes
 Escape the spade/suit-3.png             | Bin 0 -> 34121 bytes
 Escape the spade/suit-4.png             | Bin 0 -> 29288 bytes
 8 files changed, 73 insertions(+)
 create mode 100644 Escape the spade/escapethespadelogo.png
 create mode 100644 Escape the spade/index.html
 create mode 100644 Escape the spade/script.js
 create mode 100644 Escape the spade/style.css
 create mode 100644 Escape the spade/suit-1.png
 create mode 100644 Escape the spade/suit-2.png
 create mode 100644 Escape the spade/suit-3.png
 create mode 100644 Escape the spade/suit-4.png

diff --git a/Escape the spade/escapethespadelogo.png b/Escape the spade/escapethespadelogo.png
new file mode 100644
index 0000000000000000000000000000000000000000..329a9646719db0bd927438a95bdfc921136fefcc
GIT binary patch
diff --git a/Escape the spade/index.html b/Escape the spade/index.html
new file mode 100644
index 0000000..7ac0980
--- /dev/null
+++ b/Escape the spade/index.html	
@@ -0,0 +1,37 @@
+<!-- 
+    Author: Rishit Patel
+    Date: 18 Nov, 2019
+    Description: Escape The Spade Game
+-->
+<!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">
+    <title>Escape The Spade Game</title>
+    <link rel="stylesheet" href="style.css">
+    <script src="script.js" defer></script>
+</head>
+
+<body>
+    <div>
+        <div class="logo">
+            <img src="escapethespadelogo.png" alt="logo" style="width: 400px; height: 200px;">
+        </div>
+        <div>
+            <img src="suit-1.png" alt="" id="suits1" class="suit">
+            <img src="suit-1.png" alt="" id="suits2" class="suit">
+            <img src="suit-1.png" alt="" id="suits3" class="suit">
+            <img src="suit-1.png" alt="" id="suits4" class="suit">
+        </div>
+        <div>
+            <br>
+            <input type="button" value="Let's Play" onclick="startGame()" class="btn">
+            <h1 id="result"></h1>
+        </div>
+    </div>
+</body>
+
+</html>
\ No newline at end of file
diff --git a/Escape the spade/script.js b/Escape the spade/script.js
new file mode 100644
index 0000000..1095b82
--- /dev/null
+++ b/Escape the spade/script.js	
@@ -0,0 +1,16 @@
+function startGame() {
+    ranNum1 = Math.floor((Math.random() * 4) + 1);
+    ranNum2 = Math.floor((Math.random() * 4) + 1);
+    ranNum3 = Math.floor((Math.random() * 4) + 1);
+    ranNum4 = Math.floor((Math.random() * 4) + 1);
+    document.getElementById("suits1").src = "suit-" + ranNum1 + ".png";
+    document.getElementById("suits2").src = "suit-" + ranNum2 + ".png";
+    document.getElementById("suits3").src = "suit-" + ranNum3 + ".png";
+    document.getElementById("suits4").src = "suit-" + ranNum4 + ".png";
+    if (ranNum1 == 4 || ranNum2 == 4 || ranNum3 == 4 || ranNum4 == 4) {
+        document.getElementById("result").innerHTML = "You Lose!";
+    }
+    else {
+        document.getElementById("result").innerHTML = "You Win!";
+    }
+}
\ No newline at end of file
diff --git a/Escape the spade/style.css b/Escape the spade/style.css
new file mode 100644
index 0000000..a0bada3
--- /dev/null
+++ b/Escape the spade/style.css	
@@ -0,0 +1,20 @@
+body {
+    font-family: 'Trebuchet MS';
+    background-color: black;
+    text-align: center;
+    color: white;
+}
+
+.btn {
+    background-color: white;
+    border: none;
+    color: black;
+    padding: 15px 32px;
+    text-align: center;
+    text-decoration: none;
+    display: inline-block;
+    font-size: 16px;
+    margin: 4px 2px;
+    cursor: pointer;
+    border-radius: 3px;
+}
\ No newline at end of file
diff --git a/Escape the spade/suit-1.png b/Escape the spade/suit-1.png
new file mode 100644
index 0000000000000000000000000000000000000000..29be568762ed2826eb3c2bf0358c218c5d15a0c2
GIT binary patch
diff --git a/Escape the spade/suit-2.png b/Escape the spade/suit-2.png
new file mode 100644
index 0000000000000000000000000000000000000000..6d78a48b6c3a980b2f0d6e3a0bc4774cb26ad197
GIT binary patch
diff --git a/Escape the spade/suit-3.png b/Escape the spade/suit-3.png
new file mode 100644
index 0000000000000000000000000000000000000000..19a74da2c4d4d17d80d5a134c70619c019b50daf
GIT binary patch
diff --git a/Escape the spade/suit-4.png b/Escape the spade/suit-4.png
new file mode 100644
index 0000000000000000000000000000000000000000..f41674671f5e8bbc268f37e90cc6c646771d8e84
GIT binary patch

From 5dbb215f8f3fba0bcb0abe94fcaafb5cde94b116 Mon Sep 17 00:00:00 2001
From: Rishit Patel <49016509+imrishit98@users.noreply.github.com>
Date: Thu, 21 Nov 2019 13:37:50 -0500
Subject: [PATCH 08/19] Update index.html

---
 index.html | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/index.html b/index.html
index f4dafec..079cb69 100644
--- a/index.html
+++ b/index.html
@@ -80,6 +80,8 @@ <h1>Projects:</h1>
             onclick="window.open('Simple Math Program/','_blank')"><br>
         <input type="button" class="myBtn" value="Simple snake game"
             onclick="window.open('Simple JavaScipt Snake game/','_blank')"><br>
+        <input type="button" class="myBtn" value="Escape the Spade Game"
+            onclick="window.open('Escape the spade/','_blank')"><br>
         <br><a href="https://github.com/imrishit98/" target="_blank" rel="noopener noreferrer"><i class="fab fa-github"
                 style="font-size: 41px;"></i></a><br>
         <br><b>Made with ❤️ by <a href="https://rishitpatel.com" target="_blank" rel="noopener noreferrer">Rishit

From 9b62b3dadd5d892f7678f9a6cc41e1776901a3d7 Mon Sep 17 00:00:00 2001
From: Rishit Patel <49016509+imrishit98@users.noreply.github.com>
Date: Thu, 21 Nov 2019 13:40:14 -0500
Subject: [PATCH 09/19] Update script.js

---
 Escape the spade/script.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Escape the spade/script.js b/Escape the spade/script.js
index 1095b82..a03a1bd 100644
--- a/Escape the spade/script.js	
+++ b/Escape the spade/script.js	
@@ -1,3 +1,8 @@
+/*
+    Author: Rishit Patel
+    Date: 20 Nov, 2019
+    Description: Escape The Spade Game
+*/
 function startGame() {
     ranNum1 = Math.floor((Math.random() * 4) + 1);
     ranNum2 = Math.floor((Math.random() * 4) + 1);
@@ -13,4 +18,4 @@ function startGame() {
     else {
         document.getElementById("result").innerHTML = "You Win!";
     }
-}
\ No newline at end of file
+}

From 7cccd3932da588192fe858b5b87e6648b5c64b15 Mon Sep 17 00:00:00 2001
From: Rishit Patel <49016509+imrishit98@users.noreply.github.com>
Date: Thu, 21 Nov 2019 13:40:34 -0500
Subject: [PATCH 10/19] Update index.html

---
 Escape the spade/index.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Escape the spade/index.html b/Escape the spade/index.html
index 7ac0980..0fefee3 100644
--- a/Escape the spade/index.html	
+++ b/Escape the spade/index.html	
@@ -1,6 +1,6 @@
 <!-- 
     Author: Rishit Patel
-    Date: 18 Nov, 2019
+    Date: 20 Nov, 2019
     Description: Escape The Spade Game
 -->
 <!DOCTYPE html>
@@ -34,4 +34,4 @@ <h1 id="result"></h1>
     </div>
 </body>
 
-</html>
\ No newline at end of file
+</html>

From f347e34fbe573c53c42f9e134a43d57d3f49aa3f Mon Sep 17 00:00:00 2001
From: Rishit Patel <49016509+imrishit98@users.noreply.github.com>
Date: Thu, 21 Nov 2019 13:44:42 -0500
Subject: [PATCH 11/19] Update style.css

---
 Escape the spade/style.css | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Escape the spade/style.css b/Escape the spade/style.css
index a0bada3..409d959 100644
--- a/Escape the spade/style.css	
+++ b/Escape the spade/style.css	
@@ -1,3 +1,8 @@
+/*
+    Author: Rishit Patel
+    Date: 20 Nov, 2019
+    Description: Escape The Spade Game Stylesheet
+*/
 body {
     font-family: 'Trebuchet MS';
     background-color: black;
@@ -17,4 +22,4 @@ body {
     margin: 4px 2px;
     cursor: pointer;
     border-radius: 3px;
-}
\ No newline at end of file
+}

From 1f5d20c37017d26238f3038b1c21bd97746dd214 Mon Sep 17 00:00:00 2001
From: Rishit Patel <49016509+imrishit98@users.noreply.github.com>
Date: Sun, 8 Dec 2019 14:37:13 -0500
Subject: [PATCH 12/19] Testing firebase database

---
 Hi-Lo Game/HiLo.js    | 53 +++++++++++++++++++++++++++++++------------
 Hi-Lo Game/index.html | 13 ++++++++++-
 2 files changed, 50 insertions(+), 16 deletions(-)

diff --git a/Hi-Lo Game/HiLo.js b/Hi-Lo Game/HiLo.js
index 5a951b2..6cd1403 100644
--- a/Hi-Lo Game/HiLo.js	
+++ b/Hi-Lo Game/HiLo.js	
@@ -1,8 +1,32 @@
+/**
+ * Author: Rishit Patel 
+ * Date: Nov 27, 2019
+ * Description: Hi-Low Game 
+ */
+
 var theNum = 0;
 var counter = 0;
+var db;
+var name;
+
+function firebaseDB() {
+    // Your web app's Firebase configuration
+    var firebaseConfig = {
+        apiKey: "AIzaSyAtNqu1bYZMJnN9_cg_aaSY3kXv8jCpD-M",
+        authDomain: "javascript-hi-low-game.firebaseapp.com",
+        databaseURL: "https://javascript-hi-low-game.firebaseio.com",
+        projectId: "javascript-hi-low-game",
+        storageBucket: "javascript-hi-low-game.appspot.com",
+        messagingSenderId: "618945294874",
+        appId: "1:618945294874:web:ee39c3571dfb13448e17a3"
+    };
+    // Initialize Firebase
+    firebase.initializeApp(firebaseConfig);
+    db = firebase.database();
+}
 function randomNum() {
+    firebaseDB();
     theNum = Math.floor((Math.random() * 100) + 1);
-    console.log(theNum);
 }
 
 var input = document.getElementById("numInput");
@@ -18,33 +42,32 @@ function guessNum() {
     document.getElementById("counter").innerHTML = counter;
     var numIn = 0;
     numIn = document.getElementById("numInput").value;
-    console.log(numIn);
     if (numIn > theNum) {
-        console.log("high");
         document.getElementById("theIcon").className = "fas fa-arrow-down";
         document.body.style.backgroundColor = "red";
-        //document.body.style.backgroundImage = "linear-gradient(-90deg, red " + theNum + "%, green)";
-        //document.body.style.backgroundImage = "linear-gradient(-90deg, red, green " + (100 * numIn) / theNum + "%)";
-        //document.body.style.background = "linear-gradient(to right, rgba(0, 255, 0, 1) " + (((100 * numIn) / theNum)) + "%, rgba(255, 0, 0, 1) 100%)";
-        //document.getElementById("mainContainer").style.background = "linear-gradient(90deg, rgba(0,255,16,1)" + (((100 * numIn) / theNum)) + "%, rgba(0,0,0,0) 100%)";
-        console.log((((100 * numIn) / theNum) - 10));
     }
     else if (numIn < theNum) {
-        console.log("low");
         document.getElementById("theIcon").className = "fas fa-arrow-up";
         document.body.style.backgroundColor = "red";
-        //document.body.style.backgroundImage = "linear-gradient(-90deg, red, green " + (100 * theNum) / numIn + "%)";
-        //document.body.style.background = "linear-gradient(to right, rgba(0, 255, 0, 1) " + (((100 * numIn) / theNum)) + "%, rgba(255, 0, 0, 1) 100%)";
-        //document.getElementById("mainContainer").style.background = "linear-gradient(90deg, rgba(0,255,16,1)" + (((100 * numIn) / theNum)) + "%, rgba(0,0,0,0) 100%)";
-        console.log((((100 * theNum) / numIn) - 10));
     }
     else if (numIn == theNum) {
-        console.log("match");
         document.getElementById("theIcon").className = "fas fa-check-circle";
         document.getElementById("theGuessing").style.display = "none";
         document.getElementById("correctNum").innerHTML = theNum;
         document.getElementById("congo").style.display = "block";
         document.body.style.backgroundColor = "limegreen";
+        name = prompt("Please enter your name");
+        submitScore();
     }
-    document.getElementById("numInput").value = '';
+    document.getElementById("numInput").value = "";
+}
+
+function submitScore() {
+    var data = {
+        Name: name,
+        Guesses: counter
+    }
+    var ref = db.ref('Hi-Low/guessScore');
+    ref.push(data);
+
 }
\ No newline at end of file
diff --git a/Hi-Lo Game/index.html b/Hi-Lo Game/index.html
index 134e27a..01e2176 100644
--- a/Hi-Lo Game/index.html	
+++ b/Hi-Lo Game/index.html	
@@ -1,3 +1,8 @@
+<!--
+Author: Rishit Patel
+Date: Nov 27, 2019
+Description: Hi-Low Game
+-->
 <!DOCTYPE html>
 <html lang="en">
 
@@ -8,14 +13,20 @@
     <script src="https://kit.fontawesome.com/336de93654.js"></script>
     <link href="https://fonts.googleapis.com/css?family=Open+Sans&display=swap" rel="stylesheet">
     <title>Hi-Lo Game</title>
+    <script src="https://www.gstatic.com/firebasejs/7.5.2/firebase-app.js" defer></script>
+    <script src="https://www.gstatic.com/firebasejs/7.5.2/firebase-database.js" defer></script>
     <script src="HiLo.js" defer></script>
     <style>
+        * {
+            margin: 0;
+            padding: 0;
+        }
+
         body {
             text-align: center;
             font-family: 'Open Sans', sans-serif;
             background-color: orangered;
             color: white;
-            line-height: 2rem;
         }
 
         .mainContent {

From 7a8636bd31ebccde7dc9247e2c43bc58caba2f32 Mon Sep 17 00:00:00 2001
From: Rishit Patel <49016509+imrishit98@users.noreply.github.com>
Date: Tue, 24 Dec 2019 23:52:01 -0500
Subject: [PATCH 13/19] Add files via upload

---
 googlee67c4ad91b3efe84.html | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 googlee67c4ad91b3efe84.html

diff --git a/googlee67c4ad91b3efe84.html b/googlee67c4ad91b3efe84.html
new file mode 100644
index 0000000..ed57843
--- /dev/null
+++ b/googlee67c4ad91b3efe84.html
@@ -0,0 +1 @@
+google-site-verification: googlee67c4ad91b3efe84.html
\ No newline at end of file

From adec6619d6c56536a4e68620b94bd772fac34f53 Mon Sep 17 00:00:00 2001
From: Rishit Patel <49016509+imrishit98@users.noreply.github.com>
Date: Sat, 29 Feb 2020 19:18:09 -0500
Subject: [PATCH 14/19] Added rules,money and scores

---
 Escape the spade/index.html | 16 ++++++++---
 Escape the spade/script.js  | 53 ++++++++++++++++++++++++++++++++-----
 Escape the spade/style.css  | 48 +++++++++++++++++++++++++++++----
 3 files changed, 102 insertions(+), 15 deletions(-)

diff --git a/Escape the spade/index.html b/Escape the spade/index.html
index 0fefee3..0dc62d3 100644
--- a/Escape the spade/index.html	
+++ b/Escape the spade/index.html	
@@ -1,6 +1,6 @@
 <!-- 
     Author: Rishit Patel
-    Date: 20 Nov, 2019
+    Date: 18 Nov, 2019
     Description: Escape The Spade Game
 -->
 <!DOCTYPE html>
@@ -15,8 +15,15 @@
     <script src="script.js" defer></script>
 </head>
 
-<body>
+<body onload="addMoney()">
     <div>
+        <div id="mySidenav" class="sidenav">
+            <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">&times;</a>
+            <h1>Red Card = 3 points</h1>
+            <h1>Club = 0 points</h1>
+            <h1>Spade = You lose!</h1>
+        </div>
+        <span style="font-size:30px;cursor:pointer" onclick="openNav()">&#9776; Rules</span>
         <div class="logo">
             <img src="escapethespadelogo.png" alt="logo" style="width: 400px; height: 200px;">
         </div>
@@ -30,8 +37,11 @@
             <br>
             <input type="button" value="Let's Play" onclick="startGame()" class="btn">
             <h1 id="result"></h1>
+            <h1 id="score"></h1>
+            <h1 id="points"></h1>
+
         </div>
     </div>
 </body>
 
-</html>
+</html>
\ No newline at end of file
diff --git a/Escape the spade/script.js b/Escape the spade/script.js
index a03a1bd..b4252ba 100644
--- a/Escape the spade/script.js	
+++ b/Escape the spade/script.js	
@@ -1,10 +1,41 @@
-/*
-    Author: Rishit Patel
-    Date: 20 Nov, 2019
-    Description: Escape The Spade Game
-*/
+var points = 0;
+function addMoney() {
+    points = prompt("Add money to play!");
+    document.getElementById("points").innerHTML = "$" + points;
+}
 function startGame() {
-    ranNum1 = Math.floor((Math.random() * 4) + 1);
+    var lose = 0;
+    var score = 0;
+    var count = 0;
+    document.getElementById("result").innerHTML = "You Win!";
+    for (count = 1; count < 5; count++) {
+        var num = Math.floor((Math.random() * 4) + 1);
+        document.getElementById("suits" + count).src = "suit-" + num + ".png";
+        if (num == 4) {
+            lose = 1;
+            document.getElementById("result").innerHTML = "You Lose!";
+        }
+        else if (num == 2 || num == 3) {
+            score += 3;
+        }
+        if (score == 12) {
+            score = score * 4;
+        }
+        if (score == 9) {
+            score = score * 3;
+        }
+    }
+    if (lose == 1) {
+        document.getElementById("score").innerHTML = 0;
+        points -= 8.5;
+    }
+    else {
+        points += score;
+        document.getElementById("score").innerHTML = score;
+    }
+    document.getElementById("points").innerHTML = "$" + points;
+
+    /*ranNum1 = Math.floor((Math.random() * 4) + 1);
     ranNum2 = Math.floor((Math.random() * 4) + 1);
     ranNum3 = Math.floor((Math.random() * 4) + 1);
     ranNum4 = Math.floor((Math.random() * 4) + 1);
@@ -17,5 +48,13 @@ function startGame() {
     }
     else {
         document.getElementById("result").innerHTML = "You Win!";
-    }
+    }*/
+}
+
+function openNav() {
+    document.getElementById("mySidenav").style.width = "351px";
 }
+
+function closeNav() {
+    document.getElementById("mySidenav").style.width = "0";
+}
\ No newline at end of file
diff --git a/Escape the spade/style.css b/Escape the spade/style.css
index 409d959..ca737b5 100644
--- a/Escape the spade/style.css	
+++ b/Escape the spade/style.css	
@@ -1,8 +1,3 @@
-/*
-    Author: Rishit Patel
-    Date: 20 Nov, 2019
-    Description: Escape The Spade Game Stylesheet
-*/
 body {
     font-family: 'Trebuchet MS';
     background-color: black;
@@ -23,3 +18,46 @@ body {
     cursor: pointer;
     border-radius: 3px;
 }
+
+.sidenav {
+    height: 100%;
+    width: 0;
+    position: fixed;
+    z-index: 1;
+    top: 0;
+    left: 0;
+    background-color: #111;
+    overflow-x: hidden;
+    transition: 0.5s;
+    padding-top: 60px;
+}
+
+.sidenav a {
+    padding: 8px 8px 8px 32px;
+    text-decoration: none;
+    font-size: 25px;
+    color: #818181;
+    display: block;
+    transition: 0.3s;
+}
+
+.sidenav a:hover {
+    color: #f1f1f1;
+}
+
+.sidenav .closebtn {
+    position: absolute;
+    top: 0;
+    right: 25px;
+    font-size: 36px;
+    margin-left: 10px;
+}
+
+@media screen and (max-height: 450px) {
+    .sidenav {
+        padding-top: 15px;
+    }
+    .sidenav a {
+        font-size: 18px;
+    }
+}
\ No newline at end of file

From 4d720d85445b3f213b3d602972176b4a7459e495 Mon Sep 17 00:00:00 2001
From: Rishit Patel <49016509+imrishit98@users.noreply.github.com>
Date: Tue, 3 Mar 2020 21:15:20 -0500
Subject: [PATCH 15/19] Add files via upload

---
 Hi-Lo Game/HiLo.js           | 11 ++---------
 Hi-Lo Game/firebaseConfig.js |  9 +++++++++
 2 files changed, 11 insertions(+), 9 deletions(-)
 create mode 100644 Hi-Lo Game/firebaseConfig.js

diff --git a/Hi-Lo Game/HiLo.js b/Hi-Lo Game/HiLo.js
index 6cd1403..03e5f5f 100644
--- a/Hi-Lo Game/HiLo.js	
+++ b/Hi-Lo Game/HiLo.js	
@@ -4,6 +4,8 @@
  * Description: Hi-Low Game 
  */
 
+import firebaseConfig from '../../firebaseConfig';
+
 var theNum = 0;
 var counter = 0;
 var db;
@@ -11,15 +13,6 @@ var name;
 
 function firebaseDB() {
     // Your web app's Firebase configuration
-    var firebaseConfig = {
-        apiKey: "AIzaSyAtNqu1bYZMJnN9_cg_aaSY3kXv8jCpD-M",
-        authDomain: "javascript-hi-low-game.firebaseapp.com",
-        databaseURL: "https://javascript-hi-low-game.firebaseio.com",
-        projectId: "javascript-hi-low-game",
-        storageBucket: "javascript-hi-low-game.appspot.com",
-        messagingSenderId: "618945294874",
-        appId: "1:618945294874:web:ee39c3571dfb13448e17a3"
-    };
     // Initialize Firebase
     firebase.initializeApp(firebaseConfig);
     db = firebase.database();
diff --git a/Hi-Lo Game/firebaseConfig.js b/Hi-Lo Game/firebaseConfig.js
new file mode 100644
index 0000000..068d373
--- /dev/null
+++ b/Hi-Lo Game/firebaseConfig.js	
@@ -0,0 +1,9 @@
+module.exports = {
+    apiKey: "AIzaSyAtNqu1bYZMJnN9_cg_aaSY3kXv8jCpD-M",
+    authDomain: "javascript-hi-low-game.firebaseapp.com",
+    databaseURL: "https://javascript-hi-low-game.firebaseio.com",
+    projectId: "javascript-hi-low-game",
+    storageBucket: "javascript-hi-low-game.appspot.com",
+    messagingSenderId: "618945294874",
+    appId: "1:618945294874:web:ee39c3571dfb13448e17a3"
+};
\ No newline at end of file

From 2183072fbc3804c9066d4e1340932de6f82a67b7 Mon Sep 17 00:00:00 2001
From: Rishit Patel <49016509+imrishit98@users.noreply.github.com>
Date: Tue, 3 Mar 2020 21:30:07 -0500
Subject: [PATCH 16/19] Delete firebaseConfig.js

---
 Hi-Lo Game/firebaseConfig.js | 9 ---------
 1 file changed, 9 deletions(-)
 delete mode 100644 Hi-Lo Game/firebaseConfig.js

diff --git a/Hi-Lo Game/firebaseConfig.js b/Hi-Lo Game/firebaseConfig.js
deleted file mode 100644
index 068d373..0000000
--- a/Hi-Lo Game/firebaseConfig.js	
+++ /dev/null
@@ -1,9 +0,0 @@
-module.exports = {
-    apiKey: "AIzaSyAtNqu1bYZMJnN9_cg_aaSY3kXv8jCpD-M",
-    authDomain: "javascript-hi-low-game.firebaseapp.com",
-    databaseURL: "https://javascript-hi-low-game.firebaseio.com",
-    projectId: "javascript-hi-low-game",
-    storageBucket: "javascript-hi-low-game.appspot.com",
-    messagingSenderId: "618945294874",
-    appId: "1:618945294874:web:ee39c3571dfb13448e17a3"
-};
\ No newline at end of file

From 0f130491f189bb7febd21d651989fac234b6e210 Mon Sep 17 00:00:00 2001
From: Rishit Patel <49016509+imrishit98@users.noreply.github.com>
Date: Tue, 3 Mar 2020 21:32:20 -0500
Subject: [PATCH 17/19] Add files via upload

---
 Hi-Lo Game/HiLo.js | 2 --
 1 file changed, 2 deletions(-)

diff --git a/Hi-Lo Game/HiLo.js b/Hi-Lo Game/HiLo.js
index 03e5f5f..e9320f3 100644
--- a/Hi-Lo Game/HiLo.js	
+++ b/Hi-Lo Game/HiLo.js	
@@ -4,7 +4,6 @@
  * Description: Hi-Low Game 
  */
 
-import firebaseConfig from '../../firebaseConfig';
 
 var theNum = 0;
 var counter = 0;
@@ -12,7 +11,6 @@ var db;
 var name;
 
 function firebaseDB() {
-    // Your web app's Firebase configuration
     // Initialize Firebase
     firebase.initializeApp(firebaseConfig);
     db = firebase.database();

From 92034ab15350849c23b42c01b839e38894f8d288 Mon Sep 17 00:00:00 2001
From: Rishit Patel <49016509+imrishit98@users.noreply.github.com>
Date: Tue, 3 Mar 2020 23:40:59 -0500
Subject: [PATCH 18/19] Update HiLo.js

---
 Hi-Lo Game/HiLo.js | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/Hi-Lo Game/HiLo.js b/Hi-Lo Game/HiLo.js
index e9320f3..58d84bc 100644
--- a/Hi-Lo Game/HiLo.js	
+++ b/Hi-Lo Game/HiLo.js	
@@ -10,13 +10,7 @@ var counter = 0;
 var db;
 var name;
 
-function firebaseDB() {
-    // Initialize Firebase
-    firebase.initializeApp(firebaseConfig);
-    db = firebase.database();
-}
 function randomNum() {
-    firebaseDB();
     theNum = Math.floor((Math.random() * 100) + 1);
 }
 
@@ -47,18 +41,6 @@ function guessNum() {
         document.getElementById("correctNum").innerHTML = theNum;
         document.getElementById("congo").style.display = "block";
         document.body.style.backgroundColor = "limegreen";
-        name = prompt("Please enter your name");
-        submitScore();
     }
     document.getElementById("numInput").value = "";
 }
-
-function submitScore() {
-    var data = {
-        Name: name,
-        Guesses: counter
-    }
-    var ref = db.ref('Hi-Low/guessScore');
-    ref.push(data);
-
-}
\ No newline at end of file

From 86870928c91e6fab84137006e374d676066b3530 Mon Sep 17 00:00:00 2001
From: Rishit Patel <49016509+imrishit98@users.noreply.github.com>
Date: Sat, 2 May 2020 15:23:23 -0400
Subject: [PATCH 19/19] Update index.html

---
 Simple JavaScipt Snake game/index.html | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/Simple JavaScipt Snake game/index.html b/Simple JavaScipt Snake game/index.html
index 78f5e9e..d69cb6b 100644
--- a/Simple JavaScipt Snake game/index.html	
+++ b/Simple JavaScipt Snake game/index.html	
@@ -31,10 +31,9 @@
             font-size: 51px;
         }
         
-        .center {
-            width: 100%;
-            margin: 0 auto;
-            padding-left: 540px
+        .container {
+            display: flex;
+            justify-content: center;
         }
         .score {
             color: white;
@@ -46,7 +45,7 @@
 
 <body>
         <h1>SIMPLE SNAKE GAME</h1><br>
-    <div class="center">
+    <div class="container">
         <canvas id="gameC" width="400" height="400">
         </canvas><br>
     </div>
