lMAS(I)lMAS(1)EffEcr
lMAS(I)->S
Output(3,7,"MAS
Output(8,3,"SAXOTUS (C)
Lbl S
Output(5,2,"APPUIEZ SUR 5
For(T,1,6
codeTouche->@ @ pour Théta
If @=83:Goto M
69!
End
Output(5,2," <-8-> 8 espaces
For(T,1,6
codeTouche->@
If @=83:Goto M
69!
End
Goto S
Lbl M
EffEcr
Menu(" MACHINE A SOUS!","COMMENCER",1,"SCORE",2,"EFFACER",3,"QUITTER",4
Lbl 2
EffEcr
Output(4,2,"Score:
Output(4,9,S
For(T,1,10
69!
End
codeTouche->O /!\ Ne pas confondre 0 et O /!\
Goto M
Lbl 3
100->S
EffListe lMAS
100->lMAS(I
Goto M
Lbl 4
Stop
Lbl 1
10->M
lMAS(I)->S
Output(4,3,"0 0 0
Output(2,15,"O
Output(3,15,"!
Output(4,15,"=
Output(7,3,"SOUS:
Output(8,3,"MISE:
Lbl 11
Output(7,9," <-8->
Output(8,9," <-8->
Output(7,9,S
Output(8,9'M
codeTouche->@
If @=25 et M<S:M+10->M
If @=34 et M>10:M-10->M
If @=26 et M<S:S->M
If @=24 et M>10:10->M
If @=105:Goto 12
69!
Goto 11
Lbl 12
Output(2,15,"_ _ symbolise un espace simple
Output(3,15,"_
Output(5,15,"!
Output(6,15,"O
Output(7,9," <-8->
Output(7,9,S-M
If O=72
Then
1->A
1->B
1->C
0->O
Else
If O=54:Goto 13
entAléat(1,3)->A
entAléat(1,3)->B
entAléat(1,3)->C
End
For(T,1,10
Output(4,3,"! ! !
69!
Output(4,3,"0 0 0
69!
End
If A=1:Output(4,3,"7
If A=2:Output(4,3,"!
If A=3:Output(4,3,"0
For(T,1,10
Output(4,5,"! !
69!
Output(4,5,"0 0
69!
End
If B=1:Output(4,5,"7
If B=2:Output(4,5,"!
If B=3:Output(4,5,"0
For(T,1,10
Output(4,7,"!
69!
Output(4,7,"0
69!
End
If C=1:Output(4,7,"7
If C=2:Output(4,7,"!
If C=3:Output(4,7,"0
For(T,1,5
69!
End
If A=1 et B=1 et C=1
Then
M*2+S-M->S
EffEcr
Output(4,5,"J
69!
Output(4,6,"A
69!
Output(4,7,"C
69!
Output(4,8,"K
69!
Output(4,9,"P
69!
Output(4,10,"O
69!
Output(4,11,"T
For(T,1,5
69!
End
Output(5,6,"+
Output(5,7,S
For(T,1,10
69!
End
Else
If A=2 et B=2 et C=2
Then
M*1.5+S-M->S
EffEcr
Output(5,6,"+
Output(5,6,S
For(T,1,10
69!
End
Else
If A=2 ou B=2 ou C=2
Then
Goto 12
Else
S-M->S
End
End
End
For(T,1,3
69!
End
If S=<0:Goto 13 =< inférieur ou égal
EffListe lMAS
S->lMAS(I
Goto M
Lbl 13
69!
EffEcr
Output(4,7,"G
69!
Output(4,8,"A
69!
Output(4,9,"M
69!
Output(4,10,"E
69!
Output(5,7,"O
69!
Output(5,8,"V
69!
Output(5,9,"E
69!
Output(5,10,"R
For(T,1,10
69!
End
0->O
Goto 3

...EffEcr
69 -> D <-- tu marque beaucoup de 69! alors autant prendre une variable sa te raccourci un octet à chaque fois ;)
lMAS(I)->S
Output(3,7,"MAS
Output(8,3,"SAXOTUS (C)
Lbl S
Output(5,2,"APPUIEZ SUR 5
For(T,1,6
codeTouche->@ @ pour Théta
If @=83:Goto M
D!
End
Output(5,2," <-8-> 8 espaces
For(T,1,6
codeTouche->@
If @=83:Goto M
D!
End
Goto S
Lbl M
EffEcr
Menu(" MACHINE A SOUS!","COMMENCER",1,"SCORE",2,"EFFACER",3,"QUITTER",4
Lbl 2
EffEcr
Output(4,2,"Score:
Output(4,9,S
For(T,1,10
D!
End
codeTouche->O /!\ Ne pas confondre 0 et O /!\
Goto M
Lbl 3
100->S
EffListe lMAS
100->lMAS(I
Goto M
Lbl 4
Stop
Lbl 1
10->M
lMAS(I->S <-- 1 octet
Output(4,3,"0 0 0
Output(2,15,"O
Output(3,15,"!
Output(4,15,"=
Output(7,3,"SOUS:
Output(8,3,"MISE:
Repeat @=105 <-- boucle qui te fait economiser plusieurs octets
Output(7,9," <-8->
Output(8,9," <-8->
Output(7,9,S
Output(8,9'M
codeTouche->@
Max(10,min(S,M+10(@=25)-10(@=34 -> M <-- essaie sa et dit moi si sa marche
If @=26 et M<S:S->M
If @=24 et M>10:10->M
D!
End
Lbl 12
Output(2,15,"_ _ symbolise un espace simple
Output(3,15,"_
Output(5,15,"!
Output(6,15,"O
Output(7,9," <-8->
Output(7,9,S-M
If O=72
Then
1->A
1->B
1->C
Effvar O <-- 1 octet
Else
If O=54:Goto 13
entAléat(1,3->A <-- 3 lignes = 3 octets
entAléat(1,3->B
entAléat(1,3->C
End
For(T,1,10
Output(4,3,"! ! !
D!
Output(4,3,"0 0 0
D!
End
If A=1:Output(4,3,"7
If A=2:Output(4,3,"!
If A=3:Output(4,3,"0
For(T,1,10
Output(4,5,"! !
D!
Output(4,5,"0 0
D!
End
If B=1:Output(4,5,"7
If B=2:Output(4,5,"!
If B=3:Output(4,5,"0
For(T,1,10
Output(4,7,"!
D!
Output(4,7,"0
D!
End
If C=1:Output(4,7,"7
If C=2:Output(4,7,"!
If C=3:Output(4,7,"0
For(T,1,5
D!
End
If ABC=1 <-- au moins 5 octets
Then
2M+S-M->S <-- 1 octet
EffEcr
Output(4,5,"J
D!
Output(4,6,"A
D!
Output(4,7,"C
D!
Output(4,8,"K
D!
Output(4,9,"P
D!
Output(4,10,"O
D!
Output(4,11,"T
For(T,1,5
D!
End
Output(5,6,"+
Output(5,7,S
For(T,1,10
D!
End
Else
If AB=4 et BC=4 <-- quelques octets
Then
.5M+S-M->S <-- 2 octets
EffEcr
Output(5,6,"+
Output(5,6,S
For(T,1,10
D!
End
Else
If A=2 ou B=2 ou C=2
Then
Goto 12
Else
S-M->S
End
End
End
For(T,1,3
D!
End
If S=<0:Goto 13 =< inférieur ou égal
EffListe lMAS <-- une question : pourquoi le Effliste?? ET pourquoi lMAS(I) ?
S->lMAS(I
Goto M
Lbl 13
D!
EffEcr
Output(4,7,"G
D!
Output(4,8,"A
D!
Output(4,9,"M
D!
Output(4,10,"E
D!
Output(5,7,"O
D!
Output(5,8,"V
D!
Output(5,9,"E
D!
Output(5,10,"R
For(T,1,10
D!
End
Effvar OGoto 3 <-- 2 octetsmax(10,min(S,M+10(@=25)-10(@=34->MEffList lMaslMAS(I)

Output(4,7,"G
D!
Output(4,8,"A
D!
Output(4,9,"M
D!
Output(4,10,"E
D!
"111111GAME -> Chaine1
For (K,7,10
Output (4,K,sous-chaîne Chaine1,K,1
69!
End

"GAME -> Chaine1
For (K,7,10
Output (4,K,sous-chaîne Chaine1,K-6,1
69!
End

à chaque fois, moins le poids de cette ligne de code.Output(4,7,"G
69!
Output(4,8,"A
69!
Output(4,9,"M
69!
Output(4,10,"E
69!
Output(5,7,"O
69!
Output(5,8,"V
69!
Output(5,9,"E
69!
Output(5,10,"R"GAMEOVER->Chaine1
For(K,7,10
Output(4,K,sous-Chaine(Chaine1,K-6,1
69!
End
For(K,7,10
Output(5,K,sous-Chaine(Chaine1,K-2,1
69!
EndOutput(4,5,"J
69!
Output(4,6,"A
69!
Output(4,7,"C
69!
Output(4,8,"K
69!
Output(4,9,"P
69!
Output(4,10,"O
69!
Output(4,11,"T
"JACKPOT -> Chaine1
For(K,5,11
Output(4,K,sous-chaine chaine1,K-5,1
69!
End
