Giter VIP home page Giter VIP logo

hangman's Introduction

Lab: Hangman

Overview

For today's lab you will be recreating a classic game: Hangman!

You will be working in pairs on this assignment. That means you can only use one computer to code on. This will be a great exercise in pair programming. Feel free to switch between the "Driver" and "Navigator" roles throughout the lab.

YOU MUST spend 30 minutes pseudo-coding your plan for the lab before typing out any Javascript.

Technical Requirements

Your game must...

  • Render in the browser.
  • Include separate HTML/CSS/Javascript files.
    • We have provided you with some starter code. Feel free to make changes to it.
  • Use Javascript and/or jQuery for DOM manipulation.

Minimum Requirements

  • Player 1 can enter a word that will be guessed during the game.
  • The word is then hidden and represented by blank spaces.
  • Player 2 enters a letter and clicks a button to submit their guess.
  • If the letter is present, it is revealed.
  • If not, the number of turns left is decremented.
  • NOTE: No images are required!

Bonuses

Feel free to take on any/all of these!

  • Show each letter as it's guessed.
  • All 26 letters are shown and can be clicked on.
    • When the user clicks a letter, it is grayed out and rendered unclickable for the rest of the game.
  • Create a visual representation of the hangman (e.g., stick figure).
  • Have the game randomly pick a word from a dictionary. This means the user would not have to submit a word at the start of the game.
  • Add a timer to the game.

hangman's People

Contributors

amaseda avatar robertakarobin avatar

Watchers

James Cloos avatar Kristin Greenslit 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.