importjava.awt.*;importjava.applet.*;importjava.awt.event.*;publicclassPPuzzleextendsApplet{ImageimgPuzzle,buff;Pointfifteen=newPoint(3,3);int[][]map={{0,4,8,12},{1,5,9,13},{2,6,10,14},{3,7,11,15}};intsx,sy;Canvasscreen;Graphicsgs,gb;booleanrunning=false;ButtonbStart=newButton("新游戏");