Coder Social home page Coder Social logo

amheisern / snowman Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 737 KB

We're going to build a sort of reverse hangman. The player can't lose; they just get to build a snowman by adding parts each time they guess a letter correctly.

Home Page: https://lodashsnowman.netlify.app

JavaScript 8.87% HTML 5.50% TypeScript 53.16% SCSS 32.48%
react snowman api css hangman

snowman's Introduction

Snowman

We're going to build a sort of reverse hangman. The player can't lose; they just get to build a snowman by adding parts each time they guess a letter correctly.

##Objectives

Reinforce component architecture in React
Effective use props and state in React

##Requirements

We're going to build a sort of reverse hangman. The player can't lose; they just get to build a snowman by adding parts each time they guess a letter correctly. You will need to download these files and add them to your project:

Word List
Snowman Images (Unzip these before adding to your project)

Setup

degit Amheisern/react-project-template Snowman

##Explorer Mode

Selects a random word from the list and display a number of blank spaces (or underscores) equal to the word length.
Display a list of letters, A through Z as clickable buttons.
When the player guesses a letter (clicks the button):
    All instances of that letter are revealed at their corresponding positions in the word.
    The button becomes disabled, as it has already been guessed.
    Display the snowman image that corresponds with the number of letters revealed in the word.

##Adventure Mode

After the word has been completed, offer the player to play again. Reset the state of the game without a page reload.
Use this API to get your random word

snowman's People

Contributors

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