Giter Club home page Giter Club logo

flashcards's Introduction

Julia Iwinski

Front-End Software Engineer | Phoenix, Arizona

gmail gmail turing portfolio

Github Stats:

Github Stats Top Used Technologies

Technologies

Visual Studio

Trophies

flashcards's People

Contributors

dependabot[bot] avatar hannahhch avatar jgiwinski avatar thatpamiam avatar

Watchers

 avatar

flashcards's Issues

Create Game

  • Should keep track of the currentRound
  • start: method that starts everything
    • 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

Create Deck

  • class should be initialized with an array of Card objects and should have an accompanying test file. It should know how many Cards are in the Deck.

Create Round

  • create object that takes in responses and records these guesses

  • returnCurrentCard: method that returns the current card being played

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

  • new Turn instance is created when a guess is made.

  • 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

  • calculatePercentCorrect: method that calculates and returns the percentage of correct guesses

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

Create Card Class

  • create constructor
  • export to Card-test.js
  • pass all Card-test.js tests

Turn Class

  • Instantiated with two arguments - a string (that represents a user’s guess to the question), and a Card object for the current card in play.
  • returnGuess: method that returns the guess.
  • returnCard: method that returns the Card.
  • evaluateGuess: method that returns a boolean indicating if the user’s guess matches the correct answer on the card.
  • giveFeedback - method that returns either ‘incorrect!’ or ‘correct!’ based on whether the guess is correct or not.

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.