Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Veras Guess Who! #338

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# Project Name
# Guess who

Replace this readme with your own information about your project.

Start by briefly describing the assignment in a sentence or two. Keep it short and to the point.
This project was to create a "Guess who"-game. It inluded using the DOM, eventlisteners etc.

## The problem

Describe how you approached to problem, and what tools and techniques you used to solve it. How did you plan? What technologies did you use? If you had more time, what would be next?
It was alot of information to start with in the files already, which both made it easier and trickier. Less to do and figure out along the way, but a lot of code to understand at once in the beginning.
If I hade more time, I would probably work more on the styling, and additional strechgoals.

## View it live

Have you deployed your project somewhere? Be sure to include the link to the deployed project so that the viewer can click around and see what it's all about.
https://guesswhoveras.netlify.app
Binary file added code/imagesnew/barbie.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/imagesnew/countOrlok.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/imagesnew/cruellaDeVil.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/imagesnew/deloris.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/imagesnew/dobby.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/imagesnew/donVitoCorleone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/imagesnew/dorothyGale.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/imagesnew/drEmmettBrown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/imagesnew/dreParker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/imagesnew/elleWoods.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/imagesnew/galadriel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/imagesnew/genie.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/imagesnew/gimli.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/imagesnew/guessWhoLogoNew.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/imagesnew/harryPotter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/imagesnew/indieanaJones.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/imagesnew/johnCoffey.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/imagesnew/julesWinnfield.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/imagesnew/katnissEverdeen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/imagesnew/lobbyBoy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/imagesnew/malificent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/imagesnew/maryPoppins.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/imagesnew/mirandaPriestly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/imagesnew/queenOfHearts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/imagesnew/red.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/imagesnew/spock.png
Binary file added code/imagesnew/storm.png
Binary file added code/imagesnew/theJoker.png
Binary file added code/imagesnew/theMask.png
Binary file added code/imagesnew/williamSomerset.png
86 changes: 71 additions & 15 deletions code/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,93 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Project Name</title>
<title>Guess Who!</title>
<link rel="stylesheet" href="style.css" />
<link
href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet"
/>
</head>
<body>
<div id="startBox" class="start-box">
<img
class="guess-who-icon"
src="imagesnew/guessWhoLogoNew.png"
alt="Guess Who"
/>
<h1>Hey Babe! Welcome to Guess Who!</h1>
<p>Click the button below to start the game. <br> Remeber, I'll be taking the time until you confirm your guess! Good luck!!</p>
<button id="startButton" class="filled-button">START GAME!</button>
</div>

<aside class="question-section">

<button type="button" id="restart" class="outlined-button">RESTART</button>

<img
class="guess-who-icon"
src="images/guess-who-bubble.png"
src="imagesnew/guessWhoLogoNew.png"
alt="Guess Who"
/>

<h1>Does the person have</h1>

<h1>Does the person have...</h1>
<select title="questions" id="questions">
<option value="default" disabled selected >choose an attribute</option>
<optgroup label="hair">
<option value="brown">brown hair</option>
<option value="yellow">yellow hair</option>
<!-- Add the rest of hair colors as options -->
<option value="brown">brown hair?</option>
<option value="blonde">blonde hair?</option>
<option value="no">no hair?</option>
<option value="black">black hair?</option>
<option value="grey">grey hair?</option>
<option value="white">white hair?</option>
<option value="red">red hair?</option>
<option value="very specific">very specific hair?</option>

</optgroup>
<optgroup label="eyes">
<option value="hidden">hidden eyes</option>
<!-- Add the rest of eye colors as options -->
<option value="brown">brown eyes?</option>
<option value="blue">blue eyes?</option>
<option value="haunting">haunting eyes?</option>
</optgroup>

<optgroup label="accessories">
<option value="glasses">glasses</option>
<!-- Add the other accessory option here. (hat) -->
<option value="glasses">glasses?</option>
<option value="sunglasses">sunglasses?</option>
<option value="a headpiece">a headpiece?</option>
<option value="a dog">a dog?</option>
<option value="jewelry">jewelry?</option>
<option value="a weapon">a weapon?</option>
<option value="a plan">a plan?</option>
<option value="dollars">dollars?</option>
</optgroup>

<optgroup label="other">
<option value="smoker">a smoking habit</option>
<option value="a smoking habit">a smoking habit?</option>
<option value="a fashion habit">a fashion habit?</option>
<option value="a magical habit">a magical habit?</option>
<option value="a phone">braids?</option>
<option value="a beard">a beard?</option>
<option value="elf ears">elf ears?</option>
<option value="a mustache">a mustache?</option>
<option value="a striking complexion">a striking complexion?</option>
</optgroup>
</select>

<button id="filter" class="filled-button">FIND OUT</button>

<section class="time-section">
<h2>Your time:
<span class="timer" id="timer">0</span> seconds
</h2>
</section>

<section class="count-section">
<h2>Number of guesses:
<span class="guess-container" id="guess-container">0</span>
</h2>
Comment on lines +82 to +90

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love that you have added a timer and number of guesses! It made me really feel the pressure 😅 As a way of making things more "complex" next time you could try and add these part through Javascript? Just if you want to try and evolve the app 🥰

</section>

</aside>

<section class="board-wrapper">
Expand All @@ -52,11 +100,19 @@ <h1>Does the person have</h1>
<div class="win-or-lose">
<img
class="guess-who-icon"
src="images/guess-who-bubble.png"
src="imagesnew/guessWhoLogoNew.png"
alt="Guess Who"
/>
<h1 id="winOrLoseText"></h1>
<img id="winner-loser-img" class="winner-loser-img" src="" alt=""></img>
<p id="winner-loser-p" class="winner-loser-p"></p>
<button type="button" id="playAgain" class="filled-button">PLAY AGAIN</button>
<div class="count-and-timer-wrapper">
<h2>Your number of guesses was:
<span class="guess-container" id="win-or-lose-guess-container">0</span>
</h2>
<h2 id ="winOrLoseTimer"></h2>
</div>
</div>
</section>
<script src="script.js"></script>
Expand Down
Loading