Updated the code so the user levels update depending on their performance

This commit is contained in:
Tiago Ribeiro
2023-07-04 21:03:36 +01:00
parent 49e24865a3
commit ce90de1b74
6 changed files with 108 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
import {Module} from "@/interfaces";
export const MODULES: Module[] = ["reading", "listening", "writing", "speaking"];
export const BAND_SCORES: {[key in Module]: number[]} = {
reading: [0, 2.5, 3, 3.5, 4, 4.5, 5, 5.5, 6, 6.5, 7, 7.5, 8, 8.5, 9],
listening: [0, 2.5, 3, 3.5, 4, 4.5, 5, 5.5, 6, 6.5, 7, 7.5, 8, 8.5, 9],