Giter Club home page Giter Club logo

guitarist's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

guitarist's Issues

Create mechanism for the test question with options

Now we have only questions where user have to input the answer. We need the answers with options. For the first implementation let's cover the following scenario:

  1. Display the question with a) b) c) d) ... answer options.
  2. User have to input "a" or "b" or "c" or "d" ...
  3. The software validates if the user selected the right option.
  4. Display the result to the user.

Add style check

We need somehow to control the code style. I suggest to use https://www.qulice.com/ for it. In scope of this issue let's just integrate the qulice with our project and create an issues to fix the problematic code which doesn't pass the check style.

Create demo app

Let's create the demo app and add all the existing tests to it.

The flow:

  1. The program asks to select the test. It displays list of the tests with the numbers and asks user to press the desired number. Offer the "Exit" option.
  2. User should be able to pass the test.
  3. Ask user to continue or exit.
  4. On exit the application shows "Good bye!" message.
  5. On continue we start with the step 1.

Let's add the instruction to README file. In this instruction we should explain how to run the demo app.

Create a structure for the question's text

Now the class com.github.aistomin.guitarist.simple.SimpleQuestion accepts question's text as a string. It's not really convenient in case of multi-choice questions.
Let's create a structure which will decide how to display itself.

Create the answer with sound

It is a part of #16. Let's create an answer which plays sound after displaying the text, so the user can remember the sound.

Refactoring: get rid of com.github.aistomin.guitarist.simple.SimpleResult

Looks like it's just an edge case of com.github.aistomin.guitarist.advanced.PercentageBasedResult where percentage = 100. Let's do the following:

  1. Add special constructor to com.github.aistomin.guitarist.advanced.PercentageBasedResult where percentage is default = 100
  2. Let's replace all the usages and delete com.github.aistomin.guitarist.simple.SimpleResult
  3. Let's rename com.github.aistomin.guitarist.advanced.PercentageBasedResult to something like DefaultTestResult.

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.