Giter Site home page Giter Site logo

game-box's People

Watchers

 avatar  avatar  avatar

Forkers

corysutton

game-box's Issues

Make a 6-sided die

Using JavaScript, build a 6-sided die. It should:

  • Have six sides, with values 1–6
  • Have a function available to roll the die, returning one of the values
  • Return a die object

Bonus:

  • Add the die to the DOM
  • Add a button to roll the die, which updates the DOM display of the die

Add shuffle functionality to the deck

Dependency: Issue #5

  • Using the deck created in #5, add a function that can shuffle the cards in the deck
  • Add a button in the interface that shuffles the cards in the deck
  • Update the cards in the interface when the deck is shuffled

Make a system for locally-stored users & scores

If we play games, it might be nice to take turns and store user data. This feature should:

  • add locally stored users with:
    • name
    • games played/playing (and their current scores)
    • wins for each game

Create a number-guessing game

Add a game to the page
The game should:

  • generate a random number between one and ten
  • let the user guess a number
  • tell the user if they’re right, too low, or too high
  • let the user guess again until they’re right
  • keep track of the number of guesses

Write a 52-card display

Write a little script that adds a display of 52 cards into the page. It should:

  • modify the DOM to add a display of cards
  • use functional programming to iterate over the four suits, incrementing the card values for each suit

Bonus:

  • log a JavaScript object that shows the structure of your newly-created deck

Create a tic-tac-toe game

Add a tic-tac-toe game to the page. The game should:

  • allow the user to click spaces to add X or O, alternately
  • recognize when either player creates a winning board state
  • recognize when the game is a draw
  • allow the user to click to clear the board

Make a change

Make a change, any change!

  1. Fork the repo
  2. Clone a local copy
  3. Make a change
  4. Commit the change
  5. Push it to your fork
  6. Open a pull request

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.