Code Monkey home page Code Monkey logo

chin2win's Introduction

#Chin2Win

###Objective
Chin2Win is a fun game to play for anyone who would like to test their celebrity chin knowledge amongst friends. Or perhaps one would like to just prove it to oneself.

How to play:
For each turn, an image of a public figure's chin will be displayed. Player types out their best guess of the name of the celebrity whose chin is pictured.

How to win:
Guess 20 chins correctly!

Tips:

  • Spelling counts
  • Casing does not matter
  • Utilize hints (1 per chin)
  • Most answers are full names

###Technology Used HTML, CSS, JavaScript

###Wireframe and Screenshots wireframe chin2win_guesschin chin2win_rightanswer chin2win_milestone chin2win_hints chin2win_gameover

###Play Game
https://fcancio.github.io/chin2win/

###User stories As a user, I want a fun, simple, and unique game that I can play by myself or with friends on the go, or at a social event.
As a user, I want to be able to see a clear/high quality image of a chin so for guessing correctly.
As a user, I need an input box to type out my guess
As a user, I need a way to submit my guess.
As a user, I need an alert or message to know whether or not my answer is correct.
As a user, I would like a way to see my score, so I know how close I am to winning.

###Features list:

  • chin and face images
  • user input
  • score
  • milestone alerts

###Pseudocode:

  1. Chin image and player score should initialize upon loading the page.
    • create a chins array that holds chin objects that have properties chinImg, fullImg, answer.
    • upon render, an image pulled from the chins array will display on the page
    • create a player score that increments when player gets a correct answer
  2. User should be able to type guess into input box and press submit.
  3. User's input should be compared to the image variable/assignment.
  4. If user input equals image variable:
    • user is alerted that they have guessed correctly
    • run render()
      • adds point to score
      • displays new chin image
  5. If user input does not equal image variable
    • user is alerted that they should guess again
  6. Add reset button that calls init.

###Next Steps and stretch goals:

  1. Full face image shown when chin guessed correcly
  2. Various display messages based on correct or incorrect guesses
    • create message arrays for different conditions
    • display/return random idx within correct message array
      • reset to default message at render
    • All-chins-guessed/gameover feature [x] display 'Herm' image and 'Herm-approved' message
  3. Milestone messages at 5, 10, 15 chins
    • changing backdrop based on milstone reached
  4. Hints
    • create hint properties within chins array
    • clickevent on 'hint button' will print a hint
      • hint becomes accessible if answer is incorrect
      • one additional hint becomes available for each additional incorrect guess
  5. Game Over result
    • count number of incorrect inputs
    • if number of incorrect inputs == 5, game is over
  6. Display number of wrong inputs made [x] fix conditional logic for wrong inputs counted
  7. Add additional alternate names for answers
  8. Build Browser responsiveness for mobile screens
  9. Incorrect guess passes
  10. Trade incorrect guess pass for clues
  11. Timer
  12. Multiplayer/How fast?: Each player takes turns correctly typing the name of a celebrity whose chin is pictured. A player accumulates time for every second taken to answer correctly, with a time limit of 60 seconds (1 minute) for each turn. If a player is unable to correctly guess the name of the celebrity within the time limit, 120 seconds (2 minutes) will be added to their cumulative time.

chin2win's People

Contributors

fcancio avatar

Watchers

James Cloos avatar  avatar

chin2win's Issues

Uncaught DOMException: removeChild Node error

Under function render() I attempt to removeChild(faceImage) before I append(chinImage,) which lives in the getChinImage() function, so that two images do not display on the screen.

I get the following error in my console: 'Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.' on line 172 in my javascript.

Screen Shot 2019-08-05 at 6 20 57 PM

Screen Shot 2019-08-05 at 6 22 34 PM

Screen Shot 2019-08-05 at 6 23 00 PM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.