GithubHelp home page GithubHelp logo

flashcards's Introduction

FlashCards

Abstract

This app allows the user to play a flashcards game using the command line interface in the terminal. The user is presented with one question at a time, each question presenting multiple choice answers. The user selects their guess by entering the number or using the arrow keys and pressing "enter". The user receives immediate feedback to tell them if their guess was correct or incorrect. After the final question the user sees a message announcing the end of the round, including the percent of questions they answered correctly.

Install and Setup

Open your terminal and clone down this repo to your local device. You will then cd into the repo. Once you are in the repo run:

node index.js

Game Play

When you start the game you will see the following message, followed by the first question:

flashcards screenshot

Answer the question by selecting it with the arrow keys, or by typing in the number corresponding to the answer. Then press "enter". You will immediately know if your answer is correct or incorrect, and then the next question will display. Continue playing until all questions are answered. At the end of the round you will see what percent of questions were answered correctly.

flash cards example gif

In addition to a percent of correct answers, the game will also print a report card which lists out which questions were missed so that you can study and try again.

Tech Stack

This app includes javascript, mocha, and chai.

Challenges and Wins

  • One challenge was writing all of the tests required for each js file, as my experience in writing tests was limited prior to this. I improved at TDD by completing this project and successfully wrote a range of tests for each javascript class in the app.
  • This was my first experience using Command Line Interface and running an app from the terminal. This presented a challenge when it came to properly linking all of the files so that the app would work correctly, but I did so successfully.

flashcards's People

Contributors

bruce-gordon avatar thatpamiam avatar hannahhch avatar dependabot[bot] 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.