Git Product home page Git Product logo

flash-cards's Introduction

Flash Cards JavaScript Game

Approach

Starting off, I decided to outline the necessary steps involved with the game. Since I would need to include an object with an array of all the possible flash card text, titles, images, etc, it made sense to use Handlebars.JS to help with templating that functionality.

I used jQuery to make it easier to select DOM elements, and separated my JS into different files to make it easier to know which sections to edit for what.

Towards the end of working on this project, I ran into issues where I was trying to incorporate keypresses, since my cards were set up in such a way that didn't make it the easiest to roll out that piece of functionality. I managed to incorporate it with the input fields after users entered their answers, and then realized it would make more sense to just have click event listeners so users could click through the cards.

User Stories

  • As a user, I should be able to see a flash card, then guess the answer based on the image/word that was shown to me.
  • As a user, I should be able to see the answer to the flash card once I've made a guess.
  • As a user, I should be able to keep track of my progress in the game through score keeping.
  • As a user, I should be able to know when my answer is correct, and when it is wrong.
  • As a user, I should know when the game is over.

View the Flash Cards - "Learn How to Internet"

Learn How to Internet

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.