Browse Source

New: Multianswer question on Sudoku Game

MOODLE_20_STABLE
Vasilis Daloukas 10 years ago
parent
commit
481631eea9
  1. 8
      sudoku/play.php
  2. 4
      version.php

8
sudoku/play.php

@ -524,14 +524,10 @@ function game_sudoku_check_questions( $id, $game, $attempt, $sudoku, $finishatte
if( ($query->id = $DB->get_field_select( 'game_queries', 'id', $select)) == 0){
die( "problem game_sudoku_check_questions (select=$select)");
continue;
}
$name = "resp{$question->id}_";
if( !isset( $responses->$name))
continue;
}
$grade = game_grade_responses( $question, $responses, 100, $answertext);
if( $grade < 50){
if( $grade < 99){
//wrong answer
game_update_queries( $game, $attempt, $query, $grade/100, $answertext);
continue;

4
version.php

@ -22,10 +22,10 @@ if( !isset( $plugin))
$useplugin = 2;
$plugin->component = 'mod_game'; // Full name of the plugin (used for diagnostics)
$plugin->version = 20150714; // The current module version (Date: YYYYMMDDXX)
$plugin->version = 2015071402; // The current module version (Date: YYYYMMDDXX)
$plugin->requires = 2010112400; // Requires Moodle 2.0
$plugin->cron = 0; // Period for cron to check this module (secs)
$plugin->release = '3.30.14';
$plugin->release = '3.30.14.2';
if( $useplugin != 2)
$module = $plugin;

Loading…
Cancel
Save