Giter VIP home page Giter VIP logo

game-hangman-anya's Introduction

Game Project Description

hangAnya

This game is hosted on Surge and you can access it here: hanmanAnya.surge.sh

Hangman: Save Anya

This program is a game of hangman. The user is given 6 chances to guess the word. If the user guesses the word correctly, the user wins. If the user does not guess the word correctly, the user loses.

The unique aspect of this game:

  • Background:
    • The SPYxFAMILY consists of four family members:
      • The spy father Loid Forger is disguised as a psychologist
      • The assassinator mother Yor Forger is disguised as a civil servant at Berlint City Hall
      • The adopted daughter Anya Forger has the super power of reading minds
      • The pet dog Bond Forger can foresee the future
    • One day their enemies found out their secret and kidnapped the daughter Anya. You, who is a neighbor of them, will use a hangman game to save the family.

How to Play

The player will use the mouse to click the letters on screen. Each time you guess a letter correctly, the letter will appear in the word, otherwise it remains to be an underscore. You have 6 chances to choose a wrong letter. Once you have used up all 6 chances, you lose the game.

When you finish one round of game, you can click the Play Again button to play another round. This means, the game will not end until you refresh or reload the page.

Player Behaviors

  • cummulative score:
    • you receive 1 point for each word you guess correctly
    • as you continue play the game, your score will be added to the previous score
    • once you refresh or reload the game, cummulative score will be reset to 0
  • highest score
  • clicks: total number of clicks within each round of game
  • wrong guesses: total number of wrong clicks within each round of game
  • time count: total time you spend within each round of game

Local Storage

  • The data stored in local storage are highest score and clickTimes
  • The data will be stored only when you win a round

Dynamic Difficulty

  • Difficulty is determined by the length of the word, ranging from 1-10
  • Initial difficulty is 3, +1 if you win a round, -1 if you lose a round
  • There is also a Hint button, which will tell you the category of the word

game-hangman-anya's People

Contributors

kugelbrecher avatar

Watchers

 avatar

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.