Showing
1 changed file
with
9 additions
and
14 deletions
... | @@ -291,23 +291,18 @@ function generateQuiz() { | ... | @@ -291,23 +291,18 @@ function generateQuiz() { |
291 | } | 291 | } |
292 | 292 | ||
293 | function generateOX(quizO, quizX, moreInfo) { | 293 | function generateOX(quizO, quizX, moreInfo) { |
294 | - var quiz; | 294 | + quizList.push( |
295 | - var ans; | 295 | + { |
296 | - var info; | 296 | + quiz: '[OX퀴즈] ' + quizO, |
297 | - info = moreInfo; | 297 | + ans: 'o', |
298 | - if (Math.random() > 0.5) { | 298 | + info: moreInfo |
299 | - quiz = quizO; | ||
300 | - ans = 'o'; | ||
301 | - } else { | ||
302 | - quiz = quizX; | ||
303 | - ans = 'x'; | ||
304 | } | 299 | } |
305 | - quiz = '[OX퀴즈] ' + quiz; | 300 | + ); |
306 | quizList.push( | 301 | quizList.push( |
307 | { | 302 | { |
308 | - quiz: quiz, | 303 | + quiz: '[OX퀴즈] ' + quizX, |
309 | - ans: ans, | 304 | + ans: 'x', |
310 | - info: info | 305 | + info: moreInfo |
311 | } | 306 | } |
312 | ); | 307 | ); |
313 | } | 308 | } | ... | ... |
-
Please register or login to post a comment