FlashCards is the first project of Module 2 at the Turing School of Software & Design. FlashCards is a game that simulates the display of a set of 30 flashcards aimed at testing the users knowledge of object and array prototype methods. It also allows the user to select an answer for each question and provides feedback based on the accuracy of that answer. This game is built to run exclusively in the command line interface (CLI).
This project requires the implementation of a robust testing suite, emphasizing test driven development and promoting the desing of modular, reusable code. FlashCards also introduces object oriented design as well as implementation of ES6 classes.
- JavaScript
- Mocha and Chai testing suite
On the top right corner of this page, click the Fork button.
Clone down the forked repo (from your GitHub)
Once you have cloned the repo, change into the directory and install the library dependencies. Run:
npm install
To verify that it is setup correctly, in your terminal run:
npm test
You should have 5 pending tests in your Card
test file that show up.
To play the game in the terminal, run:
node index.js