var timer = 0; // 変数Timer宣言 var timer2 = 0; var speed = $('#speed').val(); // 変数speed宣言 var kyu_option = $('#kyu_option').val(); var resolution = 0; var gameFlag = false; // 変数gameFlag をfalseに設定 var maxNumber=0; // 変数maxnumber宣言=桁数設定 var reptimes; // 変数count宣言=口数設定(5口) var count = reptimes; var correctAns=0; //変数correctAns宣言(その時点での正解) var kaito=""; //変数kaito宣言 var correctCnt=0; //変数correcCnt宣言 var number; var kotae; var result = 0; var audioObj = new Audio('./sound/sound01.mp3'); var audioObj2 = new Audio('./sound/correct1.mp3'); var audioObj3 = new Audio('./sound/incorrect1.mp3');
var number_location = ['20px', '150px', '300px','500px','720px'] var dx; var dy; var basho; var a=0; var b=0; var addx; var questions = new Array(); //取得したキー入力をイベントリスナーに登録
var hundreds=0; var tens=0; var ones=0;
var zero_19 = [1,2,3,4]; var one_19 = [1,2,3,-1]; var two_19 = [1,2,-1,-2]; var three_19 = [1,-1,-2,-3]; var four_19 = [-1,-2,-3,-4];
var zero_17 = [1,2,3,4,5]; var one_17 = [1,2,3,5,-1]; var two_17 = [1,2,5,-1,-2]; var three_17 = [1,5,-1,-2,-3]; var four_17 = [5,-1,-2,-3,-4]; var five_17 = [1,2,3,4,-5]; var six_17 = [1,2,3,-1,-5]; var seven_17 = [1,2,-1,-2,-5]; var eight_17 = [1,-1,-2,-3,-5]; var nine_17 = [-1,-2,-3,-4,-5];
var zero_15 = [1,2,3,4,5,6,7,8,9]; var one_15 = [1,2,3,5,6,7,8,-1]; var two_15 = [1,2,5,6,7,-1,-2]; var three_15 = [1,5,6,-1,-2,-3]; var four_15 = [5,-1,-2,-3,-4]; var five_15 = [1,2,3,4,-5]; var six_15 = [1,2,3,-1,-5,-6]; var seven_15 = [1,2,-1,-2,-5,-6,-7]; var eight_15 = [1,-1,-2,-3,-5,-6,-7,-8]; var nine_15 = [-1,-2,-3,-4,-5,-6,-7,-8,-9];
var zero_14 = [1,2,3,4,5,6,7,8,9]; var one_14 = [4]; var two_14 = [3,4]; var three_14 = [2,3,4]; var four_14 = [1,2,3,4]; var five_14 = [-1,-2,-3,-4]; var six_14 = [-2,-3,-4]; var seven_14 = [-3,-4]; var eight_14 = [-4]; var nine_14 = [-1,-2,-3,-4,-5,-6,-7,-8,-9];
var zero_13 = [1,2,3,4,5,6,7,8,9]; var one_13 = [9]; var two_13 = [1,2,3,4,5,6,7,8,9,-1,-2]; var three_13 = [1,2,3,4,5,6,7,8,9,-1,-2,-3]; var four_13 = [1,2,3,4,5,6,7,8,9,-1,-2,-3,-4]; var five_13 = [1,2,3,4,5,-1,-2,-3,-4,-5]; var six_13 = [1,2,3,4,5,9,-1,-2,-3,-4,-5,-6]; var seven_13 = [1,2,3,4,5,8,9,-1,-2,-3,-4,-5,-6,-7]; var eight_13 = [1,2,3,4,5,7,8,9,-1,-2,-3,-4,-5,-6,-7,-8]; var nine_13 = [1,2,3,4,5,6,7,8,9,-1,-2,-3,-4,-5,-6,-7,-8,-9];
/* var zero_14 = [1,2,3,4,5,6,7,8,9]; var one_14 = [1,2,3,4,5,6,7,8,-1]; var two_14 = [1,2,3,4,5,6,7,-1,-2]; var three_14 = [1,2,3,4,5,6,-1,-2,-3]; var four_14 = [1,2,3,4,5,-1,-2,-3,-4]; var five_14 = [1,2,3,4,-1,-2,-3,-4,-5]; var six_14 = [1,2,3,-1,-2,-3,-4,-5,-6]; var seven_14 = [1,2,-1,-2,-3,-4,-5,-6,-7]; var eight_14 = [1,-1,-2,-3,-4,-5,-6,-7,-8]; var nine_14 = [-1,-2,-3,-4,-5,-6,-7,-8,-9];
var zero_13 = [1,2,3,4,5,6,7,8,9]; var one_13 = [1,2,3,4,5,6,7,8,9,-1]; var two_13 = [1,2,3,4,5,6,7,8,9,-1,-2]; var three_13 = [1,2,3,4,5,6,7,8,9,-1,-2,-3]; var four_13 = [1,2,3,4,5,6,7,8,9,-1,-2,-3,-4]; var five_13 = [1,2,3,4,5,-1,-2,-3,-4,-5]; var six_13 = [1,2,3,4,5,9,-1,-2,-3,-4,-5,-6]; var seven_13 = [1,2,3,4,5,8,9,-1,-2,-3,-4,-5,-6,-7]; var eight_13 = [1,2,3,4,5,7,8,9,-1,-2,-3,-4,-5,-6,-7,-8]; var nine_13 = [1,2,3,4,5,6,7,8,9,-1,-2,-3,-4,-5,-6,-7,-8,-9]; */