Coder Social home page Coder Social logo

benjamin-davies / maquo Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 162 KB

…the site for Ma Quizzes

Home Page: https://php.mmc.school.nz/201COS/benjamindavies/maquo/

JavaScript 26.65% HTML 0.92% Shell 0.84% CSS 9.36% PHP 61.03% Hack 0.05% Dockerfile 1.15%

maquo's Introduction

Maquo

This is a project of mine for school. You can view a working version of it here.

A log of my progress and planning can be found in this Google Doc.

maquo's People

Contributors

benjamin-davies avatar

Watchers

James Cloos avatar  avatar

maquo's Issues

Deleting questions does not update question numbers

Describe the bug
When a question is deleted, the numbers of the other questions do not update, and a gap is left in the numbering where the deleted question was.

To Reproduce

  1. Create a new quiz
  2. Create three questions
  3. Delete question 2
  4. The numbers are 1 and 3

Expected behaviour
The numbers should be 1 and 2.

Additional context
Found by Nik so it's probably wrong.

Show the overall score

Present the user with an overall score, either as a percentage or a fraction, when they finish a quiz.

Make answer checker more lenient

Currently, the answer checker only checks if the question and answer are exactly the same.

This can lead to confusion where the author of a quiz spells a place name in lowercase with a trailing space, but the person taking the quiz types it with a capital letter and no trailing whitespace. Both answers would be accepted by a human, but the application would mark the second answer, which is the correct way of typing a place name, as wrong.

To fix this the answer checker should have the following behaviours:

  • Be case insensitive,
  • Ignore leading and trailing whitespace,
  • Treat all whitespace, including tabs and repeated spaces, as singular spaces,

This could be implemented by applying a filter to both the author's answer and the participant's answer before they are checked for inequality.

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.