Skip to content
No description, website, or topics provided.
CSS JavaScript HTML
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Riddler.jpg
game.html
index.html
losing.mp3
losing2.mp3
memory.gif
myman.gif
question.jpg
quiz.jpg
readme.md
rid.jpg
riddle.jpeg
riddle_background.jpg
riddler.mp3
riddler2.jpg
riddler3.jpg
script.js
shocked.gif
style.css

readme.md

README

The game is about riddle. I ask different ridlle question and you do your best to answer them. Each time you get answer right you gain one point. At the end of the trivia game. You click the peace sign to get your score.

link to my game https://csaintil.github.io/Riddle-Me-/

The features, I included in this project are, a next and previous button that become disabled that themselves when you reach the end of the questions and a modal that display your score, you can win and lose, different sound whether you lose or win.

As for pain point,first one was to put each answer in the button, second was to check the user click the right answer and to match wiht the right answer.

The technologies I used were JAVACRIPT,JQUERY,HTML and CSS.

As for my approch, I used an object constructor to create a different new question each time. I hard coded the each answer to four buttons and each question because it was only 5 questions. It was more, I would have used a for loop. Next, to check the answer, I created an empty array named score to check whether the user have click the right answer or not. Based on that, I check how true is there inside then i print the score based on may true there is in the array;

You can’t perform that action at this time.