probleme sur mon morpion

bonjour j'ai crée un jeu de morpion sympa sans utiliser le mode graphique (je ne sais pas l'utiliser ^^")
et dansce programme une fois sur deux lorsque je lance le programme en mode un joueur au bout du 6ème tour
le programme s'arrete en faisant "done"
je vus recopie le programme meme si je doute que beaucoup de monde aura le courage de le recopier (8page) ^^ mais si quelqun pouvait arriver a voir mon erreur (j'ai regardé + de 10 fois mon programme sans la trouvé)
Lbl 3
EffEcr
RappelImage 1
Pause
0-W
0-S
0-B
0-C
0-D
0-E
0-V
0-F
0-G
0-H
0-I
0-J
Menu("MORPION","JOUER",4,"REGLE DU JEU",5,"QUITTER",6)
Lbl 5
Disp "FAIRE UNE LIGNE"
Disp "DE 3 CROIX OU
Disp "3 RONDS"
Pause
EffEcr
Goto 3
Lbl 4
Menu("NBRE DE JOUEURS","UN",51,"DEUX",52)
Lbl 51
W+1-W
Lbl 52
While V=0
Lbl 2
EffEcr
Output(6,1,"J1"
Output(1,8,"7 8 9")
Output(3,8,"4 5 6")
Output(5,8,"1 2 3")
If W=1
Then
entAléat(1,9)-A
End
If W=/1 (=/ veut dire inégale)
Then
Input "OU ?",A
End
EffEcr
If A=7
Then
If B=1 ou B=-1
Then
S-1-S
Goto 2
End
B-1-B
S+1-S
End
If A=8
Then
If C=1 ou C=-1
Then
S-1-S
Goto 2
End
C-1-C
S+1-S
End
If A=9
Then
If D=1 ou D=-1
Then
S-1-S
Goto 2
End
D-1-D
S+1-S
End
If A=4
Then
If E=1 ou E=-1
Then
S-1-S
Goto 2
End
E-1-E
S+1-S
End
If A=5
Then
If F=1 ou F=-1
Then
S-1-S
Goto 2
End
F-1-F
S+1-S
End
If A=6
Then
If G=1 ou G-1
Then
S-1-S
Goto 2
End
G-1-G
S+1-S
End
If A=1
Then
If H=1 ou H=-1
Then
S-1-S
Goto 2
End
H-1-H
S+1-S
End
If A=2
Then
If I=1 ou I=-1
Then
S-1-S
Goto 2
End
I-1-I
S+1-S
End
If A=3
Then
If J=1 ou J=-1
Then
S-1-S
Goto 2
End
J-1-J
S+1-S
End
For(X,1,13)
Output(1,X,"-")
Output(3,X,"-")
Output(5,X,"-")
Output(7,X,"-")
End
For(X,1,14,4)
Output(2,X,"I"
Output(4,X,"I"
Output(6,X,"I"
End
If B=1
Then
Output(2,2,"OOO"
End
If B=-1
Then
Output(2,2,"XXX")
End
If C=1
Then
Output(2,6,"OOO"
End
If C=-1
Then
Output(2,6,"XXX")
End
If D=1
Then
Output(2,10,"OOO"
End
If D=-1
Then
Output(2,10,"XXX")
End
If E=1
Then
Output(4,2,"OOO"
End
If E=-1
Then
Output(4,2,"XXX")
End
If F=1
Then
Output(4,6,"OOO"
End
If F=-1
Then
Output(4,6,"XXX")
End
If G=1
Then
Output(4,10,"OOO"
End
If G=-1
Then
Output(4,10,"XXX")
End
If H=1
Then
Output(6,2,"OOO"
End
If H=-1
Then
Output(6,2,"XXX"
End
If I=1
Then
Output(6,6,"OOO"
End
If I=1
Then
Output(6,6,"XXX")
End
If J=1
Then
Output(6,10,"OOO"
End
If J=-1
Then
Output(6,10,"XXX")
End
If B+C+D=3 ou E+F+G=-3 ou H+I+J=-3 ou B+E+H=-3 ou C+F+I=-3 ou D+G+J=-3
Then
Output(8,1,"J1 GAGNE")
Pause
V-1-V
Goto 10
End
If B+F+J=-3 ou D+F+H=-3
Then
Output(8,1,"J1 GAGNE"
Pause
V-1-V
Goto 10
End
If S=9
Then
Output(8,1,"EGALITE"
Pause
V-1-V
Goto 10
End
Pause
Lbl 1
EffEcr
Output(6,1,"J2"
Output(1,8,"7 8 9")
Output(3,8,"4 5 6")
Output(5,8,"1 2 3")
Input "OU ?",R
If R=7
Then
If B=-1 ou B=1
Then
S-1-S
Goto 1
End
B+1-B
S+1-S
End
If R=8
Then
If C=-1 ou C=1
Then
S-1-S
Goto 1
End
C+1-C
S+1-S
End
If R=9
Then
If D=1 ou D=-1
Then
S-1-S
Goto 1
End
D+1-D
S+1-S
End
If R=4
Then
If E=1 ou E=-1
Then
S-1-S
Goto 1
End
E+1-E
S+1-S
End
If R=5
Then
If F=1 ou F=-1
Then
S-1-S
Goto 1
End
F+1-F
S+1-S
End
If R=6
Then
If G=1 ou G=-1
Then
S-1-S
Goto 1
End
G+1-G
S+1-S
End
If R=1
Then
If H=1 ou H=-1
Then
S-1-S
Goto 1
End
H+1-H
S+1-S
End
If R=2
Then
If I=1 ou I=-1
Then
S-1-S
Goto 1
End
I+1-I
S+1-S
End
If R=3
Then
If J=1 ou J=-1
Then
S-1-S
Goto 1
End
J+1-J
S+1-S
End
For(X,1,14)
Output(1,X,"-")
Output(3,X,"-")
Output(5,X,"-")
Output(7,X,"-")
End
For(X,1,14,4)
Output(2,X,"I")
Output(4,X,"I")
Output(6,X,"I")
End
If B=-1
Then
Output(2,2,"XXX"
End
If B=1
Then
Output(2,2,"OOO")
End
If C=-1
Then
Output(2,6,"XXX"
End
If C=1
Then
Output(2,6,"OOO"
End
If D=-1
Then
Output(2,10,"XXX"
End
If D=1
Then
Output(2,10,"OOO"
End
If E=-1
Then
Output(4,2,"XXX"
End
If E=1
Then
Output(4,2,"OOO"
End
If F=-1
Then
Output(4,6,"XXX"
End
If F=1
Then
Output(4,6,"OOO"
End
If G=-1
Then
Output(4,10,"XXX"
End
If G=1
Then
Output(4,10,"OOO"
End
If H=-1
Then
Output(6,2,"XXX"
End
If H=1
Then
Output(6,2,"OOO"
End
If I=-1
Then
Output(6,6,"XXX"
End
If I=1
Then
Output(6,6,"OOO"
End
If J=-1
Then
Output(6,10,"XXX"
End
If J=1
Then
Output(6,10,"OOO"
End
If B+C+D=3 ou E+F+G=3 ou H+I+J=3
Then
Output(8,1,"J2 GAGNE"
Pause
V-1-V
Goto 10
End
If B+E+H=3 ou C+F+I=3 ou D+G+J=3
Then
Output(8,1,"J2 GAGNE"
Pause
V-1-V
Goto 10
End
If B+F+J=3 ou D+F+H=3
Then
Output(8,1,"J2 GAGNE")
Pause
V-1-V
Goto 10
End
If S=9
Then
Output(8,1,"EGALITE"
Pause
V-1-V
Goto 10
End
Pause
End
Lbl 10
While V=-1
Menu("FIN DE PARTIE","REJOUER",3,"QUITTER",6
EffEcr
End
Lbl 6
EffEcr
et dansce programme une fois sur deux lorsque je lance le programme en mode un joueur au bout du 6ème tour
le programme s'arrete en faisant "done"
je vus recopie le programme meme si je doute que beaucoup de monde aura le courage de le recopier (8page) ^^ mais si quelqun pouvait arriver a voir mon erreur (j'ai regardé + de 10 fois mon programme sans la trouvé)
Lbl 3
EffEcr
RappelImage 1
Pause
0-W
0-S
0-B
0-C
0-D
0-E
0-V
0-F
0-G
0-H
0-I
0-J
Menu("MORPION","JOUER",4,"REGLE DU JEU",5,"QUITTER",6)
Lbl 5
Disp "FAIRE UNE LIGNE"
Disp "DE 3 CROIX OU
Disp "3 RONDS"
Pause
EffEcr
Goto 3
Lbl 4
Menu("NBRE DE JOUEURS","UN",51,"DEUX",52)
Lbl 51
W+1-W
Lbl 52
While V=0
Lbl 2
EffEcr
Output(6,1,"J1"
Output(1,8,"7 8 9")
Output(3,8,"4 5 6")
Output(5,8,"1 2 3")
If W=1
Then
entAléat(1,9)-A
End
If W=/1 (=/ veut dire inégale)
Then
Input "OU ?",A
End
EffEcr
If A=7
Then
If B=1 ou B=-1
Then
S-1-S
Goto 2
End
B-1-B
S+1-S
End
If A=8
Then
If C=1 ou C=-1
Then
S-1-S
Goto 2
End
C-1-C
S+1-S
End
If A=9
Then
If D=1 ou D=-1
Then
S-1-S
Goto 2
End
D-1-D
S+1-S
End
If A=4
Then
If E=1 ou E=-1
Then
S-1-S
Goto 2
End
E-1-E
S+1-S
End
If A=5
Then
If F=1 ou F=-1
Then
S-1-S
Goto 2
End
F-1-F
S+1-S
End
If A=6
Then
If G=1 ou G-1
Then
S-1-S
Goto 2
End
G-1-G
S+1-S
End
If A=1
Then
If H=1 ou H=-1
Then
S-1-S
Goto 2
End
H-1-H
S+1-S
End
If A=2
Then
If I=1 ou I=-1
Then
S-1-S
Goto 2
End
I-1-I
S+1-S
End
If A=3
Then
If J=1 ou J=-1
Then
S-1-S
Goto 2
End
J-1-J
S+1-S
End
For(X,1,13)
Output(1,X,"-")
Output(3,X,"-")
Output(5,X,"-")
Output(7,X,"-")
End
For(X,1,14,4)
Output(2,X,"I"
Output(4,X,"I"
Output(6,X,"I"
End
If B=1
Then
Output(2,2,"OOO"
End
If B=-1
Then
Output(2,2,"XXX")
End
If C=1
Then
Output(2,6,"OOO"
End
If C=-1
Then
Output(2,6,"XXX")
End
If D=1
Then
Output(2,10,"OOO"
End
If D=-1
Then
Output(2,10,"XXX")
End
If E=1
Then
Output(4,2,"OOO"
End
If E=-1
Then
Output(4,2,"XXX")
End
If F=1
Then
Output(4,6,"OOO"
End
If F=-1
Then
Output(4,6,"XXX")
End
If G=1
Then
Output(4,10,"OOO"
End
If G=-1
Then
Output(4,10,"XXX")
End
If H=1
Then
Output(6,2,"OOO"
End
If H=-1
Then
Output(6,2,"XXX"
End
If I=1
Then
Output(6,6,"OOO"
End
If I=1
Then
Output(6,6,"XXX")
End
If J=1
Then
Output(6,10,"OOO"
End
If J=-1
Then
Output(6,10,"XXX")
End
If B+C+D=3 ou E+F+G=-3 ou H+I+J=-3 ou B+E+H=-3 ou C+F+I=-3 ou D+G+J=-3
Then
Output(8,1,"J1 GAGNE")
Pause
V-1-V
Goto 10
End
If B+F+J=-3 ou D+F+H=-3
Then
Output(8,1,"J1 GAGNE"
Pause
V-1-V
Goto 10
End
If S=9
Then
Output(8,1,"EGALITE"
Pause
V-1-V
Goto 10
End
Pause
Lbl 1
EffEcr
Output(6,1,"J2"
Output(1,8,"7 8 9")
Output(3,8,"4 5 6")
Output(5,8,"1 2 3")
Input "OU ?",R
If R=7
Then
If B=-1 ou B=1
Then
S-1-S
Goto 1
End
B+1-B
S+1-S
End
If R=8
Then
If C=-1 ou C=1
Then
S-1-S
Goto 1
End
C+1-C
S+1-S
End
If R=9
Then
If D=1 ou D=-1
Then
S-1-S
Goto 1
End
D+1-D
S+1-S
End
If R=4
Then
If E=1 ou E=-1
Then
S-1-S
Goto 1
End
E+1-E
S+1-S
End
If R=5
Then
If F=1 ou F=-1
Then
S-1-S
Goto 1
End
F+1-F
S+1-S
End
If R=6
Then
If G=1 ou G=-1
Then
S-1-S
Goto 1
End
G+1-G
S+1-S
End
If R=1
Then
If H=1 ou H=-1
Then
S-1-S
Goto 1
End
H+1-H
S+1-S
End
If R=2
Then
If I=1 ou I=-1
Then
S-1-S
Goto 1
End
I+1-I
S+1-S
End
If R=3
Then
If J=1 ou J=-1
Then
S-1-S
Goto 1
End
J+1-J
S+1-S
End
For(X,1,14)
Output(1,X,"-")
Output(3,X,"-")
Output(5,X,"-")
Output(7,X,"-")
End
For(X,1,14,4)
Output(2,X,"I")
Output(4,X,"I")
Output(6,X,"I")
End
If B=-1
Then
Output(2,2,"XXX"
End
If B=1
Then
Output(2,2,"OOO")
End
If C=-1
Then
Output(2,6,"XXX"
End
If C=1
Then
Output(2,6,"OOO"
End
If D=-1
Then
Output(2,10,"XXX"
End
If D=1
Then
Output(2,10,"OOO"
End
If E=-1
Then
Output(4,2,"XXX"
End
If E=1
Then
Output(4,2,"OOO"
End
If F=-1
Then
Output(4,6,"XXX"
End
If F=1
Then
Output(4,6,"OOO"
End
If G=-1
Then
Output(4,10,"XXX"
End
If G=1
Then
Output(4,10,"OOO"
End
If H=-1
Then
Output(6,2,"XXX"
End
If H=1
Then
Output(6,2,"OOO"
End
If I=-1
Then
Output(6,6,"XXX"
End
If I=1
Then
Output(6,6,"OOO"
End
If J=-1
Then
Output(6,10,"XXX"
End
If J=1
Then
Output(6,10,"OOO"
End
If B+C+D=3 ou E+F+G=3 ou H+I+J=3
Then
Output(8,1,"J2 GAGNE"
Pause
V-1-V
Goto 10
End
If B+E+H=3 ou C+F+I=3 ou D+G+J=3
Then
Output(8,1,"J2 GAGNE"
Pause
V-1-V
Goto 10
End
If B+F+J=3 ou D+F+H=3
Then
Output(8,1,"J2 GAGNE")
Pause
V-1-V
Goto 10
End
If S=9
Then
Output(8,1,"EGALITE"
Pause
V-1-V
Goto 10
End
Pause
End
Lbl 10
While V=-1
Menu("FIN DE PARTIE","REJOUER",3,"QUITTER",6
EffEcr
End
Lbl 6
EffEcr