Ok, je vois quelques erreurs vite fait mais je pense que ça va bien m'aider.
J'ai eu aussi l'aide de Carish surXtreamLua :
et celle de akiraenmpsi de PSPgen :
green = Color.new(0, 255, 0)A = 13B = 12C = 14D = 10E = 9F = 20G = 17H = 23I = 2J = 8tableaud = {}tableaud[1]=Atableaud[2]=Btableaud[3]=Ctableaud[4]=Dtableaud[5]=Etableaud[6]=Ftableaud[7]=Gtableaud[8]=Htableaud[9]=Itableaud[10]=Jvariable = 0for j = 1,10 do for i = 1,9 do if tableaud[i]<tableaud[i+1] then variable=tableaud[i] tableaud[i]=tableaud[i+1] tableaud[i+1]=variable end endendfor g = 1,10 doscreen:print(30*g, 100, tableaud[g], green)endscreen.flip()while true doscreen.waitVblankStart()pad = Controls.read()if pad:start() thenbreakendendfor l = 1,10 doif A==tableaud[l] thentableaud[l]="A"endif B==tableaud[l] thentableaud[l]="B"endif C==tableaud[l] thentableaud[l]="C"endif D==tableaud[l] thentableaud[l]="D"endif E==tableaud[l] thentableaud[l]="E"endif F==tableaud[l] thentableaud[l]="F"endif G==tableaud[l] thentableaud[l]="G"endif H==tableaud[l] thentableaud[l]="H"endif I==tableaud[l] thentableaud[l]="I"endif J==tableaud[l] thentableaud[l]="J"endendtableauc = {}for l = 1,10 dotableauc[l]=tableaud[11-l]endfor g = 1,10 doscreen:print(30*g, 100, tableauc[g], green)screen:print(30*g, 200, tableaud[g], green)endscreen.flip()while true doscreen.waitVblankStart()pad = Controls.read()if pad:up() thenbreakendend
Avec ça, je pense pouvoir m'en tirer.
Je les ai tous remercié.