var WordsFont = "26px Verdana"; var LineHeight = 10; var LineSpace = 10; var BtnW = 56; var BtnH = 56; var button_list = 0; var DrawType = "image"; var ErrorSoundIsOn = true; var Capital = false; var GAEventName = "game-001-shapes-001-22"; var Hint = "repeat"; var SndOn = "sound off"; var SndOff = "sound on"; var GOver1 = "You have got "; var GOver11 = " out of "; var GOver2 = "The game "; var GOver3 = "is over !"; var GOver4 = "Good luck "; var GOver5 = "next time!"; var GOver6 = "close this window ( x ),"; var GOver7 = " or click here to play again."; var Wrong1 = "You've got "; var Wrong11 = " points."; var Wrong2 = "WRONG!"; var Wrong3 = "Please, click here to continue"; var Right1 = "You've got "; var Right11 = " points."; var Right2 = "CORRECT!"; var Right3 = "Please, click here to continue"; var SndPath = "https://www.lysaks.com/english/games/a/"; //////////////////////////////////////////// //////////////////////////////////////////// var ButtonList = [ [ "001-shapes-001/circle.gif", "001-shapes-001/square.gif", "001-shapes-001/arrow.gif", "001-shapes-001/cone.gif", "001-shapes-001/triangle.gif", "001-shapes-001/cube.gif", "001-shapes-001/cylinder.gif", "001-shapes-001/diamond.gif", "001-shapes-001/heart.gif", "001-shapes-001/hemisphere.gif", "001-shapes-001/hexagon.gif", "001-shapes-001/octagon.gif", "001-shapes-001/lightening.gif", "001-shapes-001/sphere.gif", "001-shapes-001/star.gif", "001-shapes-001/pentagon.gif", "001-shapes-001/oval.gif", "001-shapes-001/spiral.gif", "001-shapes-001/zigzag.gif", "001-shapes-001/pyramid.gif", "001-shapes-001/rectangle.gif", "001-shapes-001/semicircle.gif" ], [ "001-shapes-001/circle.gif", "001-shapes-001/square.gif", "001-shapes-001/arrow.gif", "001-shapes-001/cone.gif", "001-shapes-001/triangle.gif", "001-shapes-001/cube.gif", "001-shapes-001/cylinder.gif", "001-shapes-001/diamond.gif", "001-shapes-001/heart.gif", "001-shapes-001/hemisphere.gif", "001-shapes-001/hexagon.gif", "001-shapes-001/octagon.gif", "001-shapes-001/lightening.gif", "001-shapes-001/sphere.gif", "001-shapes-001/star.gif", "001-shapes-001/pentagon.gif", "001-shapes-001/oval.gif", "001-shapes-001/spiral.gif", "001-shapes-001/zigzag.gif", "001-shapes-001/pyramid.gif", "001-shapes-001/rectangle.gif", "001-shapes-001/semicircle.gif" ], [ "001-shapes-001/circle.gif", "001-shapes-001/square.gif", "001-shapes-001/arrow.gif", "001-shapes-001/cone.gif", "001-shapes-001/triangle.gif", "001-shapes-001/cube.gif", "001-shapes-001/cylinder.gif", "001-shapes-001/diamond.gif", "001-shapes-001/heart.gif", "001-shapes-001/hemisphere.gif", "001-shapes-001/hexagon.gif", "001-shapes-001/octagon.gif", "001-shapes-001/lightening.gif", "001-shapes-001/sphere.gif", "001-shapes-001/star.gif", "001-shapes-001/pentagon.gif", "001-shapes-001/oval.gif", "001-shapes-001/spiral.gif", "001-shapes-001/zigzag.gif", "001-shapes-001/pyramid.gif", "001-shapes-001/rectangle.gif", "001-shapes-001/semicircle.gif" ], [ "001-shapes-001/circle.gif", "001-shapes-001/square.gif", "001-shapes-001/arrow.gif", "001-shapes-001/cone.gif", "001-shapes-001/triangle.gif", "001-shapes-001/cube.gif", "001-shapes-001/cylinder.gif", "001-shapes-001/diamond.gif", "001-shapes-001/heart.gif", "001-shapes-001/hemisphere.gif", "001-shapes-001/hexagon.gif", "001-shapes-001/octagon.gif", "001-shapes-001/lightening.gif", "001-shapes-001/sphere.gif", "001-shapes-001/star.gif", "001-shapes-001/pentagon.gif", "001-shapes-001/oval.gif", "001-shapes-001/spiral.gif", "001-shapes-001/zigzag.gif", "001-shapes-001/pyramid.gif", "001-shapes-001/rectangle.gif", "001-shapes-001/semicircle.gif" ], [ "001-shapes-001/circle.gif", "001-shapes-001/square.gif", "001-shapes-001/arrow.gif", "001-shapes-001/cone.gif", "001-shapes-001/triangle.gif", "001-shapes-001/cube.gif", "001-shapes-001/cylinder.gif", "001-shapes-001/diamond.gif", "001-shapes-001/heart.gif", "001-shapes-001/hemisphere.gif", "001-shapes-001/hexagon.gif", "001-shapes-001/octagon.gif", "001-shapes-001/lightening.gif", "001-shapes-001/sphere.gif", "001-shapes-001/star.gif", "001-shapes-001/pentagon.gif", "001-shapes-001/oval.gif", "001-shapes-001/spiral.gif", "001-shapes-001/zigzag.gif", "001-shapes-001/pyramid.gif", "001-shapes-001/rectangle.gif", "001-shapes-001/semicircle.gif" ] ]; var ColorName = [ "001-shapes-001/circle.gif", "001-shapes-001/square.gif", "001-shapes-001/arrow.gif", "001-shapes-001/cone.gif", "001-shapes-001/triangle.gif", "001-shapes-001/cube.gif", "001-shapes-001/cylinder.gif", "001-shapes-001/diamond.gif", "001-shapes-001/heart.gif", "001-shapes-001/hemisphere.gif", "001-shapes-001/hexagon.gif", "001-shapes-001/octagon.gif", "001-shapes-001/lightening.gif", "001-shapes-001/sphere.gif", "001-shapes-001/star.gif", "001-shapes-001/pentagon.gif", "001-shapes-001/oval.gif", "001-shapes-001/spiral.gif", "001-shapes-001/zigzag.gif", "001-shapes-001/pyramid.gif", "001-shapes-001/rectangle.gif", "001-shapes-001/semicircle.gif" ]; var A = [ ["a","circle"], ["a","square"], ["an","arrow"], ["a","cone"], ["a","triangle"], ["a","cube"], ["a","cylinder"], ["a","rhombus"], ["a","heart"], ["a","hemisphere"], ["a","hexagon"], ["an","octagon"], ["a","lightning"], ["a","sphere"], ["a","star"], ["a","pentagon"], ["an","oval"], ["a","spiral"], ["a","zigzag"], ["a","pyramid"], ["a","rectangle"], ["a","semicircle"] ]; var Points = [ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ]; var TotalPoints = 462; // var ColorList = ["red", "blue", "brown", "maroon", "green", "black"]; var ColorList = ["#eeeeee", "black"]; var CurrentColor = 0; var Q = [ ["a circle"], ["a square"], ["an arrow"], ["a cone"], ["a triangle"], ["a cube"], ["a cylinder"], ["a rhombus"], ["a heart"], ["a hemisphere"], ["a hexagon"], ["an octagon"], ["a lightning"], ["a sphere"], ["a star"], ["a pentagon"], ["an oval"], ["a spiral"], ["a zigzag"], ["a pyramid"], ["a rectangle"], ["a semicircle"] ]; var TotalGames = A.length+1; ///////////////////////////////////////// // Randomize the words array ///////////////////////////////////////// function ReshuffleArray(array) { var currentIndex = array.length, temporaryValue, randomIndex; // While there remain elements to shuffle... while (0 !== currentIndex) { // Pick a remaining element... randomIndex = Math.floor(Math.random() * currentIndex); currentIndex -= 1; // And swap it with the current element. temporaryValue = array[currentIndex]; array[currentIndex] = array[randomIndex]; array[randomIndex] = temporaryValue; } return array; } for( var i = 0; i 3 ) button_list = 0; else button_list++; } CorrectSound = ReshuffleArray(CorrectSound);