Créateur : moi, donc scale
Trouvée sur : mon blog
Version : 1.0
Taille : 468 Ram
compatibilité : Ti 82 83 84
lbl 1
clrhome
For(x,1,16,1)
output(1,x,"*"
output(8,x,"*"
end
For(x,1,8,1)
output(x,1,"*"
output(x,16,"*"
end
output(4,5,"by scale")
pause: goto 2
lbl 2
clrhome
output(1,1,"somme :"
output(1,9,t
if t <=0
then:goto 3
end
pause
clrhome
t-1ùt
output(1,1,"****************")
output(8,1,"****************")
output(5,4,"["
output(5,6,"]"
output(5,7,"["
output(5,9,"]"
output(5,10,"["
output(5,12,"]"
pause
randint(0,9)ùf
randint(0,9)ùw
randint(0,9)ùv
output(5,5,f
output(5,8,w
output(5,11,v
if f=w and f=v and v=w
then:output(7,1,"gagner !"
t+10ùt
end
if f=/w and f=/v and w=/v
then :output(7,1,"perdu !"
end
pause: goto 2
lbl 3
clrhome
output(1,1,"tu n'as plus de"
output(2,1,"sous !"
10ùt
pause: goto 1
Les signes problematique
<= signifie plus petit ou egale
=/ signifie pas egale, différent de
ù signifie la fleche de la touche STO
Proposition de tibo :
la aussi change :
if f=w and f=v and v=w
then:output(7,1,"gagner !"
t+10ùt
end
if f=/w and f=/v and w=/v
then :output(7,1,"perdu !"
end
par :
if f=w and f=v and v=w
then:output(7,1,"gagner !"
t+10ùt
else
output(7,1,"perdu !"
end
C'est une bonne solution, maintenant a vous de voir se que vous prennez, en tout cas merci a lui :)