Commit 0078ea00 authored by Akshat Tandon's avatar Akshat Tandon Committed by Johnny Jazeix
Browse files

letter-in-word, restricted number of words shown in a level

parent 62295b64
......@@ -166,6 +166,9 @@ function initLevel() {
if (currentSubLevel == 0) {
level = levels[currentLevel];
words = Lang.getLessonWords(dataset, level);
Core.shuffle(words);
var limit = Math.min(13, words.length)
words = words.slice(0,limit)
frequency = calculateFrequency();
var tempQuestions = generateQuestions();
maxSubLevel = tempQuestions.length;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment