[[[-20,-20],[-10,-20],[-10,-10],[-20,-10]],[[-10,-20],[0,-20],[0,-10],[-10,-10]],[[0,-20],[10,-20],[10,-10],[0,-10]],[[10,-20],[20,-20],[20,-10],[10,-10]]] addshapes(SHAPECOL2) [[0,"one",[-15,-15]],[1,"two",[-5,-15]],[2,"three",[5,-15]],[3,"four",[10,-20]],[4,"five",[10,-20]],[5,"six",[10,-20]],[6,"seven",[10,-20]],[7,"eight",[10,-20]],[8,"nine",[10,-20]],[9,"ten",[10,-20]],[10,"eleven",[10,-20]],[11,"twelve",[10,-20]],[12,"thirteen",[10,-20]],[13,"fourteen",[10,-20]],[14,"fifteen",[10,-20]],[15,"sixteen",[10,-20]]] randRange(1,16) 4 ["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16"] ["lions.jpg","packers.png"] ["lions","packers"] [0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1] shuffle(INDEX,16) randFromArray(INDEXMIX) posinArray(INDEXMIX,1) arrayPos(WHICHA,INDEXMIX)
You have 4 dots to predict the winner of the 2011 Thanksgiving Classic Game. Drag them to where you should put them and then click the green check answer button.
init({ range: [ [-30, 30], [-30, 30] ], scale: [10,10] }); var a=[]; var b=[]; shapes=SHAPECOL.length; for (var i=0; i < shapes; i++){ pts=SHAPECOL[i].length; a[i]=path(SHAPECOL[i]); pts=SHAPECOL[i].length b[i]=line(SHAPECOL[i][pts-1],SHAPECOL[i][0]) } graph.pic0 = new ImportPictureb(PICARRAY[INDEXMIX[0]], [-20, -10], 1, 100, 100 ); graph.pic1 = new ImportPictureb(PICARRAY[INDEXMIX[1]], [-10, -10], 1, 100, 100 ); graph.pic2 = new ImportPictureb(PICARRAY[INDEXMIX[2]], [0, -10], 1, 100, 100 ); graph.pic3 = new ImportPictureb(PICARRAY[INDEXMIX[3]], [10, -10], 1, 100, 100 ); graph.pic4 = new ImportPictureb(PICARRAY[INDEXMIX[4]], [-20, 0], 1, 100, 100 ); graph.pic5 = new ImportPictureb(PICARRAY[INDEXMIX[5]], [-10, 0], 1, 100, 100 ); graph.pic6 = new ImportPictureb(PICARRAY[INDEXMIX[6]], [0, 0], 1, 100, 100 ); graph.pic7 = new ImportPictureb(PICARRAY[INDEXMIX[7]], [10, 0], 1, 100, 100 ); graph.pic8 = new ImportPictureb(PICARRAY[INDEXMIX[8]], [-20, 10], 1, 100, 100 ); graph.pic9 = new ImportPictureb(PICARRAY[INDEXMIX[9]], [-10, 10], 1, 100, 100 ); graph.pica = new ImportPictureb(PICARRAY[INDEXMIX[10]], [0, 10], 1, 100, 100 ); graph.picb = new ImportPictureb(PICARRAY[INDEXMIX[11]], [10, 10], 1, 100, 100 ); graph.picc = new ImportPictureb(PICARRAY[INDEXMIX[12]], [-20, 20], 1, 100, 100 ); graph.picd = new ImportPictureb(PICARRAY[INDEXMIX[13]], [-10, 20], 1, 100, 100 ); graph.pice = new ImportPictureb(PICARRAY[INDEXMIX[14]], [0, 20], 1, 100, 100 ); graph.picf = new ImportPictureb(PICARRAY[INDEXMIX[15]], [10, 20], 1, 100, 100 ); Khan.scratchpad.disable(); addMouseLayer(); graph.points = []; for ( var x = 0; x < POINTS; x++ ) { graph.points[x] = addMovablePoint({ coord: [5*(x-1),5*(x-1)], constraints: { constrainY: false }, snapX: 0.5, snapY: 0.5 }); } graph.points[0].onMove = function( x, y){ jQuery("#solutionarea input:eq(0)").val(inorout(SHAPECOL[0],[x,y])*1+inorout(SHAPECOL[1],[x,y])*2+inorout(SHAPECOL[2],[x,y])*3+inorout(SHAPECOL[3],[x,y])*4+inorout(SHAPECOL[4],[x,y])*5+inorout(SHAPECOL[5],[x,y])*6+inorout(SHAPECOL[6],[x,y])*7+inorout(SHAPECOL[7],[x,y])*8 +inorout(SHAPECOL[8],[x,y])*9+inorout(SHAPECOL[9],[x,y])*10+inorout(SHAPECOL[10],[x,y])*11+inorout(SHAPECOL[11],[x,y])*12+inorout(SHAPECOL[12],[x,y])*13+inorout(SHAPECOL[13],[x,y])*14+inorout(SHAPECOL[14],[x,y])*15+inorout(SHAPECOL[15],[x,y])*16); }; graph.points[1].onMove = function( x, y){ jQuery("#solutionarea input:eq(1)").val(inorout(SHAPECOL[0],[x,y])*1+inorout(SHAPECOL[1],[x,y])*2+inorout(SHAPECOL[2],[x,y])*3+inorout(SHAPECOL[3],[x,y])*4+inorout(SHAPECOL[4],[x,y])*5+inorout(SHAPECOL[5],[x,y])*6+inorout(SHAPECOL[6],[x,y])*7+inorout(SHAPECOL[7],[x,y])*8 +inorout(SHAPECOL[8],[x,y])*9+inorout(SHAPECOL[9],[x,y])*10+inorout(SHAPECOL[10],[x,y])*11+inorout(SHAPECOL[11],[x,y])*12+inorout(SHAPECOL[12],[x,y])*13+inorout(SHAPECOL[13],[x,y])*14+inorout(SHAPECOL[14],[x,y])*15+inorout(SHAPECOL[15],[x,y])*16); }; graph.points[2].onMove = function( x, y){ jQuery("#solutionarea input:eq(2)").val(inorout(SHAPECOL[0],[x,y])*1+inorout(SHAPECOL[1],[x,y])*2+inorout(SHAPECOL[2],[x,y])*3+inorout(SHAPECOL[3],[x,y])*4+inorout(SHAPECOL[4],[x,y])*5+inorout(SHAPECOL[5],[x,y])*6+inorout(SHAPECOL[6],[x,y])*7+inorout(SHAPECOL[7],[x,y])*8 +inorout(SHAPECOL[8],[x,y])*9+inorout(SHAPECOL[9],[x,y])*10+inorout(SHAPECOL[10],[x,y])*11+inorout(SHAPECOL[11],[x,y])*12+inorout(SHAPECOL[12],[x,y])*13+inorout(SHAPECOL[13],[x,y])*14+inorout(SHAPECOL[14],[x,y])*15+inorout(SHAPECOL[15],[x,y])*16); }; graph.points[3].onMove = function( x, y){ jQuery("#solutionarea input:eq(3)").val(inorout(SHAPECOL[0],[x,y])*1+inorout(SHAPECOL[1],[x,y])*2+inorout(SHAPECOL[2],[x,y])*3+inorout(SHAPECOL[3],[x,y])*4+inorout(SHAPECOL[4],[x,y])*5+inorout(SHAPECOL[5],[x,y])*6+inorout(SHAPECOL[6],[x,y])*7+inorout(SHAPECOL[7],[x,y])*8 +inorout(SHAPECOL[8],[x,y])*9+inorout(SHAPECOL[9],[x,y])*10+inorout(SHAPECOL[10],[x,y])*11+inorout(SHAPECOL[11],[x,y])*12+inorout(SHAPECOL[12],[x,y])*13+inorout(SHAPECOL[13],[x,y])*14+inorout(SHAPECOL[14],[x,y])*15+inorout(SHAPECOL[15],[x,y])*16); }; for (var i=0; i < 16; i++){ if (i%3 == 0){ a[i].attr({fill:"F5F5F5"}) } }
WHICH_FOUR[0]+1
WHICH_FOUR[1]+1
WHICH_FOUR[2]+1
WHICH_FOUR[3]+1

Brett Who?