Coder Social home page Coder Social logo

snowman-cli-challenge's Introduction

Command Line Snowman

For this assignment, you will build a game of snowman that lets you play in the terminal!

Snowman Gif

Setup Instructions

  1. Fork the assignment repo
  2. Clone your fork to your machine
  3. cd to the cloned directory and run npm install
  4. Create a .gitignore file
  5. Inside .gitignore, write node_modules
  6. Write your code in snowman.js

Submission Instructions

  1. Complete the project
  2. Commit and push your changes to your fork
  3. Submit a Pull Request back to the assignment repo
  4. Paste a link to of your Fork on Canvas and submit

Technical Requirements

  • Complete all the User stories listed below
  • For the "stats" like number of remaining guesses and previously guessed letters, use one object rather than several global variables.

User Stories

Copy the user stories from the Trello board here into your own board.

As a user, I should be presented with a random word to guess

  • The computer should pick a word at random
  • The user should see a number of _ characters equal to the number of letters in the word (ex. A _ _ L E, for apple)

As a user, I should be able to enter guesses

  • Handle invalid guesses by displaying a message and having the user enter a different guess. Invalid guesses don't count against the guess count.
  • After each guess, the user should see the new updated word, replacing all _ with letters they have guessed
  • After each guess, the user should see the letters they have guessed already
  • After each incorrect guess, the number of guesses should decrease.
  • After each correct guess, the number of guesses should stay the same.

As a user, I should know how many guesses I have left

  • At the beginning of the game, the number of guesses remaining should be visible
  • After each guess, the updated number of guesses should be visible

As a user, I should know when I win or lose and see the correct answer.

  • The game should continue until the user has won or lost
  • Once the full word is guessed, the game should display how many guesses it took and display a victory message
  • If the user runs out of guesses, the full word should be revealed and the game should display a defeat message

snowman-cli-challenge's People

Contributors

mckiernantim 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.