Giter Club home page Giter Club logo

flashcards's People

Contributors

dependabot[bot] avatar hannahhch avatar hannakim91 avatar thatpamiam avatar

flashcards's Issues

Round: `takeTurn`

takeTurn: method that updates turns count, evaluates guesses, gives feedback, and stores ids of incorrect guesses

  • When a guess is made, a new Turn instance is created.
  • The turns count is updated, regardless of whether the guess is correct or incorrect
  • The next card becomes current card
  • Guess is evaluated/recorded. Incorrect guesses will be stored (via the id) in an array of incorrectGuesses
  • Feedback is returned regarding whether the guess is incorrect or correct

Game: start method

  • Creates Cards
  • Puts Cards in a Deck
  • Creates a new Round using the Deck
  • invokes printMessage to display the message in the CLI
  • invokes printQuestion to kick off our helper functions that allow interaction via the CLI

Round: `endRound`

endRound: method that prints the following to the console: ‘** Round over! ** You answered <>% of the questions correctly!’

Extension: review incorrect answers

Add functionality so that the Round (and thus, the Game) does not end after you’ve gone through all of the cards. The player should then be prompted to try to guess again, reviewing only those cards that are stored as incorrect.

README

-[ ] abstract

  • giphy
  • instructions

Deck.countCards()

and should have an accompanying test file. It should know how many Cards are in the Deck.

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.