diff --git a/CONTRIBUTING GUIDE.md b/CONTRIBUTING GUIDE.md index 7c65b8c..d6f73a5 100644 --- a/CONTRIBUTING GUIDE.md +++ b/CONTRIBUTING GUIDE.md @@ -17,4 +17,4 @@ Please note we have a code of conduct, please follow it in all your interactions Check the code of conduct [here](https://github.com/yash2189/tictactoe/blob/fix-readme/CODE%20OF%20CONDUCT.md). -## Don't forget to add your details in contributors.html \ No newline at end of file +## Don't forget to add your details in /contributors/contributors.html \ No newline at end of file diff --git a/README.md b/README.md index e1f4315..508a119 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Table of contents This is a very simple and light tic tac toe web game made using HTML, CSS and JS. This game is very easy to play. -![](tictactoe.png) +![](/assets/images/tictactoe.png) ### Tech Stack diff --git a/app.js b/app.js index ffb426a..c221e49 100644 --- a/app.js +++ b/app.js @@ -187,7 +187,7 @@ const checkWinner = () => { temp3 = temp3 + loss2; console.log("player win"); audio.pause(); - endMusic = new Audio("audio/win.wav"); + endMusic = new Audio("/assets/audio/win.wav"); endMusic.play(); } else if (res == computer) { @@ -200,7 +200,7 @@ const checkWinner = () => { temp4 = temp4 + loss1; console.log("computer win"); audio.pause(); - endMusic = new Audio("audio/gameover.wav"); + endMusic = new Audio("/assets/audio/gameover.wav"); endMusic.play(); } else if (board_full) { @@ -212,7 +212,7 @@ const checkWinner = () => { temp6 = temp6 + draw2; console.log("draw"); audio.pause(); - endMusic = new Audio("audio/gameover.wav"); + endMusic = new Audio("/assets/audio/gameover.wav"); endMusic.play(); } diff --git a/audio/gameover.wav b/assets/audio/gameover.wav similarity index 100% rename from audio/gameover.wav rename to assets/audio/gameover.wav diff --git a/music.mp3 b/assets/audio/music.mp3 similarity index 100% rename from music.mp3 rename to assets/audio/music.mp3 diff --git a/audio/win.wav b/assets/audio/win.wav similarity index 100% rename from audio/win.wav rename to assets/audio/win.wav diff --git a/favicon.png b/assets/images/favicon.png similarity index 100% rename from favicon.png rename to assets/images/favicon.png diff --git a/tictactoe.png b/assets/images/tictactoe.png similarity index 100% rename from tictactoe.png rename to assets/images/tictactoe.png diff --git a/contributors.css b/contributors/contributors.css similarity index 100% rename from contributors.css rename to contributors/contributors.css diff --git a/contributors.html b/contributors/contributors.html similarity index 93% rename from contributors.html rename to contributors/contributors.html index 0e1c9cd..7c69788 100644 --- a/contributors.html +++ b/contributors/contributors.html @@ -9,7 +9,7 @@ crossorigin="anonymous" /> - + diff --git a/contributors.js b/contributors/contributors.js similarity index 100% rename from contributors.js rename to contributors/contributors.js diff --git a/main.css b/css/main.css similarity index 100% rename from main.css rename to css/main.css diff --git a/style.css b/css/style.css similarity index 100% rename from style.css rename to css/style.css diff --git a/about.html b/html/about.html similarity index 93% rename from about.html rename to html/about.html index ef205f1..43750a5 100644 --- a/about.html +++ b/html/about.html @@ -20,9 +20,9 @@ Tictactoe - About - + - +