- Code: Select all
Lbl 2
EffÉcran
Menu("MYGAME","JOUER",3,"REGLES",4,"QUITTER",5
Lbl 1
Lbl 5
EffÉcran
Stop
Goto P
Lbl 3
Menu("VS IA",6,"SIMPLE",7,"CUSTOM",8
Goto Z
Lbl 4
ClrHome
Disp " Joueur 1 :"
Disp "Choisit un nombre que"
Disp "le joueur 2 devra deviner"
Disp " Joueur 2 :"
Disp "Devine le chiffre choisis"
Disp "par le joueur 1 avec"
Disp "une aide du jeu"
Pause
Lbl 7
Disp "NIVEAU ENTRE 1-3"
Input "",U
If U>3
Disp "NON"
If U=1
50→C
EffÉcran
If U=2
100→C
EffÉcran
If U=3
150→C
EffÉcran
Disp "PLAYER1"
Input "NOMBRE:",A
If A>C
Input "NOMBRE:",A
EffÉcran
Disp "PLAYER2"
Input "DEVINE:",B
Lbl Y
If B>A
Disp "PLUS PETIT"
If B<A
Disp "PLUS GRAND"
If B>C
Disp "NON"
If B=A
Disp "BRAVO"
If B≠A
Input "DEVINE:",B
Goto Y
M.à.j. modération : merci d'utiliser les balises [code] la prochaine fois ([code] au début de votre code, et la balise [ /code] à la fin du code).