From 89ed7a327bdaf6aa5c53a81621adebb2fbba49a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20F=C3=BCrderer?= Date: Tue, 25 Aug 2020 18:54:15 +0200 Subject: [PATCH] Allow null-values for additional cards When null is given, there is no card to assign There is currently no placeholder for the missing space. This means, if a row has no card at some column it must also have no card at any later column. --- quiz.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quiz.js b/quiz.js index 1820b81..a916a2f 100644 --- a/quiz.js +++ b/quiz.js @@ -69,7 +69,9 @@ function shuffle(a) { function shuffle_cards(section) { let a = []; for (let i=0; i