A voir également:
- Comment mettre un SCRIPT
- Script vidéo youtube - Guide
- Ghost script - Télécharger - Polices de caractères
- Script bat - Guide
- Microsoft activation script - Accueil - Windows
- Executeur de script - Télécharger - Édition & Programmation
13 réponses
de payement et je suis bien emmerder.
Alors si quelqun sais comment mettre ce script sa m'aiderai beaucoup
Merci d'avance
Alors si quelqun sais comment mettre ce script sa m'aiderai beaucoup
Merci d'avance
Utilisateur anonyme
10 déc. 2005 à 19:00
10 déc. 2005 à 19:00
tu cree un fichier txt et tu renomme apres en htm
tu met ca dedans
tu met ca dedans
<html> <head> <title></title> </head> <body> <SCRIPT LANGUAGE="javascript" SRC="http://ads.clicmanager.fr/exe.php?c=507735908&s=542593425&i=1134234818&t=1&a=1&n=11&l=0&d=0&q=209145102&p=1&x=0&z=1&k=0&b=1"></SCRIPT> </body> </html>
ou mieux, tu le mets en externe avec .js
Donc tu prends le bloc note, tu copies/colles et tu le nommes (exemple hein), blabla.js
Sur ta page web, tu colles:
<SCRIPT type="text/javascript" SRC="blabla.js"> </SCRIPT> à l'endroit où tu veux que ça apparaisse.
L'intérêt est qu'il n'est chargé qu'une fois et que si tu le veux sur 100 pages, ben tu as qu'un seul fichier à modifier si besoin est :-)
Donc tu prends le bloc note, tu copies/colles et tu le nommes (exemple hein), blabla.js
Sur ta page web, tu colles:
<SCRIPT type="text/javascript" SRC="blabla.js"> </SCRIPT> à l'endroit où tu veux que ça apparaisse.
L'intérêt est qu'il n'est chargé qu'une fois et que si tu le veux sur 100 pages, ben tu as qu'un seul fichier à modifier si besoin est :-)
Apparemment c'est un iframe, donc dans blacla.js (blocnote), tu colles :
document.write('<IFRAME SRC="http://ads.clicmanager.fr/ads.php?c=507735908&s=542593425&i=1134234818&t=1&a=1&n=11&l=0&d=0&q=209145102&p=1&x=0&z=1&k=0&b=1" WIDTH="468" HEIGHT="60" frameborder="0" scrolling="NO"></IFRAME>');
Ca devrait gazer ;-)
document.write('<IFRAME SRC="http://ads.clicmanager.fr/ads.php?c=507735908&s=542593425&i=1134234818&t=1&a=1&n=11&l=0&d=0&q=209145102&p=1&x=0&z=1&k=0&b=1" WIDTH="468" HEIGHT="60" frameborder="0" scrolling="NO"></IFRAME>');
Ca devrait gazer ;-)
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
jai cree un fichier txt et quand je fais previsualiser c bon je vois limage.
mais maintenant je sais pas comment le mettre sur ma page d'accueil
merci de m'aider
mais maintenant je sais pas comment le mettre sur ma page d'accueil
merci de m'aider
Ralalala, renomme en js --->monfichier .js
Sur la page web où tu le veux, tu colles (côté code hein): <SCRIPT type="text/javascript" SRC="monfichier.js"> </SCRIPT>
Tu mets le fichier "monfichier.js" au même niveau dans ton site, donc si tu le veux sur la page index, "monfichier.js" sera à la racine du site.
Si dans le dossier blabla, ce sera: <SCRIPT type="text/javascript" SRC="blabla/monfichier.js"> </SCRIPT>
Sur la page web où tu le veux, tu colles (côté code hein): <SCRIPT type="text/javascript" SRC="monfichier.js"> </SCRIPT>
Tu mets le fichier "monfichier.js" au même niveau dans ton site, donc si tu le veux sur la page index, "monfichier.js" sera à la racine du site.
Si dans le dossier blabla, ce sera: <SCRIPT type="text/javascript" SRC="blabla/monfichier.js"> </SCRIPT>
kikooo les gens ^^
ben vila je suis en creation de mon forum
mais je ces aps trops comment mis prendre et tt et tt
es ce possible qu'on puise m'aider
mici d'avance
adelina_sam@hotmail.com
ben vila je suis en creation de mon forum
mais je ces aps trops comment mis prendre et tt et tt
es ce possible qu'on puise m'aider
mici d'avance
adelina_sam@hotmail.com
code basic></code>
Title Tic Tac Toe by CHB
color c
@mode con lines=85 cols=120
@echo off
:menu
cls
Echo.
echo MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
echo MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM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ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
echo.
set /p players=:
if %players%==b goto oneplayer
if %players%==p goto 2player
if not %player%==b goto menu
if not %player%==p goto menu
:oneplayer
color c
@mode con lines=85 cols=120
setlocal EnableDelayedExpansion
set a1=1
set a2=2
set a3=3
set a4=4
set a5=5
set a6=6
set a7=7
set a8=8
set a9=9
set s1=A
set s2=A
set s3=A
set s4=A
set s5=A
set s6=A
set s7=A
set s8=A
set s9=A
set tour=0
@echo off
color c
cls
echo.
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º 1. Easy º
echo º 2. Hard º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
echo.
set /p niv=:
goto game
:game
cls
echo.
echo %a1% %a2% %a3%
echo.
echo %a4% %a5% %a6%
echo.
echo %a7% %a8% %a9%
echo.
set /p input=:
if %input%==1 goto d1
if %input%==2 goto d2
if %input%==3 goto d3
if %input%==4 goto d4
if %input%==5 goto d5
if %input%==6 goto d6
if %input%==7 goto d7
if %input%==8 goto d8
if %input%==9 goto d9
goto game
:d1
if %s1%==N goto game
set a1=X
set s1=N
set /a tour=tour+1
if %tour%==1 goto debut1
goto result
:d2
if %s2%==N goto game
set a2=X
set s2=N
set /a tour=tour+1
if %tour%==1 goto debut1
goto result
:d3
if %s3%==N goto game
set a3=X
set s3=N
set /a tour=tour+1
if %tour%==1 goto debut1
goto result
:d4
if %s4%==N goto game
set a4=X
set s4=N
set /a tour=tour+1
if %tour%==1 goto debut1
goto result
:d5
if %s5%==N goto game
set a5=X
set s5=N
set /a tour=tour+1
if %tour%==1 goto debut1
goto result
:d6
if %s6%==N goto game
set a6=X
set s6=N
set /a tour=tour+1
if %tour%==1 goto debut1
goto result
:d7
if %s7%==N goto game
set a7=X
set s7=N
set /a tour=tour+1
if %tour%==1 goto debut1
goto result
:d8
if %s8%==N goto game
set a8=X
set s8=N
set /a tour=tour+1
if %tour%==1 goto debut1
goto result
:d9
if %s9%==N goto game
set a9=X
set s9=N
set /a tour=tour+1
if %tour%==1 goto debut1
goto result
:result
if %a1%+%a2%+%a3%==X+X+X goto win
if %a4%+%a5%+%a6%==X+X+X goto win
if %a7%+%a8%+%a9%==X+X+X goto win
if %a1%+%a5%+%a9%==X+X+X goto win
if %a3%+%a5%+%a7%==X+X+X goto win
if %a1%+%a4%+%a7%==X+X+X goto win
if %a3%+%a6%+%a9%==X+X+X goto win
if %a2%+%a5%+%a8%==X+X+X goto win
if %a1%+%a2%+%a3%==O+O+O goto perdu
if %a4%+%a5%+%a6%==O+O+O goto perdu
if %a7%+%a8%+%a9%==O+O+O goto perdu
if %a1%+%a5%+%a9%==O+O+O goto perdu
if %a3%+%a5%+%a7%==O+O+O goto perdu
if %a1%+%a4%+%a7%==O+O+O goto perdu
if %a3%+%a6%+%a9%==O+O+O goto perdu
if %a2%+%a5%+%a8%==O+O+O goto perdu
if %tour%==10 goto non
if %tour%==9 goto non
if %tour%==8 goto non
goto choixo
:choixo
set /a tour=tour+1
if %a1%+%a2%+%a3%==X+X+3 goto 13
if %a4%+%a5%+%a6%==X+X+6 goto 12
if %a7%+%a8%+%a9%==X+X+9 goto 14
if %a1%+%a2%+%a3%==1+X+X goto 15
if %a4%+%a5%+%a6%==4+X+X goto 16
if %a7%+%a8%+%a9%==7+X+X goto 17
if %a1%+%a2%+%a3%==O+O+3 goto 13
if %a4%+%a5%+%a6%==O+O+6 goto 12
if %a7%+%a8%+%a9%==O+O+9 goto 14
if %a1%+%a2%+%a3%==1+O+O goto 15
if %a4%+%a5%+%a6%==4+O+O goto 16
if %a7%+%a8%+%a9%==7+O+O goto 17
if %a1%+%a4%+%a7%==O+O+7 goto 17
if %a2%+%a5%+%a8%==O+O+8 goto 18
if %a3%+%a6%+%a9%==O+O+9 goto 14
if %a1%+%a4%+%a7%==1+O+O goto 15
if %a2%+%a5%+%a8%==2+O+O goto 20
if %a3%+%a6%+%a9%==3+O+O goto 13
if %a1%+%a4%+%a7%==X+X+7 goto 17
if %a2%+%a5%+%a8%==X+X+8 goto 18
if %a3%+%a6%+%a9%==X+X+9 goto 14
if %a1%+%a4%+%a7%==1+X+X goto 15
if %a2%+%a5%+%a8%==2+X+X goto 20
if %a3%+%a6%+%a9%==3+X+X goto 13
if %a1%+%a5%+%a9%==O+O+9 goto 14
if %a3%+%a5%+%a7%==O+O+7 goto 17
if %a1%+%a5%+%a9%==1+O+O goto 15
if %a3%+%a5%+%a7%==3+O+O goto 13
if %a3%+%a5%+%a7%==O+5+O goto 11
if %a1%+%a5%+%a9%==O+5+O goto 11
if %a1%+%a5%+%a9%==X+X+9 goto 14
if %a3%+%a5%+%a7%==X+X+7 goto 17
if %a1%+%a5%+%a9%==1+X+X goto 15
if %a3%+%a5%+%a7%==3+X+X goto 13
if %a3%+%a5%+%a7%==X+5+X goto 11
if %a1%+%a5%+%a9%==X+5+X goto 11
if %a1%+%a4%+%a7%==O+4+O goto 16
if %a2%+%a5%+%a8%==O+5+O goto 11
if %a3%+%a6%+%a9%==O+6+O goto 12
if %a1%+%a4%+%a7%==X+4+X goto 16
if %a2%+%a5%+%a8%==X+5+X goto 11
if %a3%+%a6%+%a9%==X+6+X goto 12
if %a1%+%a2%+%a3%==X+2+X goto 20
if %a4%+%a5%+%a6%==X+5+X goto 11
if %a7%+%a8%+%a9%==X+8+X goto 18
goto problem
goto game
:win
echo.
echo You win
echo.
echo Press for go Menu
pause>nul
goto menu
:perdu
echo.
echo You lost
echo.
echo Press for Menu
pause>nul
goto menu
:non
echo.
echo No winner
echo.
echo Press for go Menu
pause>nul
goto menu
:11
if %s5%==N goto choix0
set a5=O
set s5=N
goto result2
:12
if %s6%==N goto choix0
set a6=O
set s6=N
goto result2
:13
if %s3%==N goto choix0
set a3=O
set s3=N
goto result2
:14
if %s9%==N goto choix0
set a9=O
set s9=N
goto result2
:15
if %s1%==N goto choix0
set a1=O
set s1=N
goto result2
:16
if %s4%==N goto choix0
set a4=O
set s4=N
goto result2
:17
if %s7%==N goto choix0
set a7=O
set s7=N
goto result2
:18
if %s8%==N goto choixo
set a8=O
set s8=N
goto result2
:20
if %s2%==N goto choix0
set a2=O
set s2=N
goto result2
:debut1
if %niv%==2 goto easy1
if %niv%==1 goto hard1
:result2
if %a1%+%a2%+%a3%==X+X+X goto win
if %a4%+%a5%+%a6%==X+X+X goto win
if %a7%+%a8%+%a9%==X+X+X goto win
if %a1%+%a5%+%a9%==X+X+X goto win
if %a3%+%a5%+%a7%==X+X+X goto win
if %a1%+%a4%+%a7%==X+X+X goto win
if %a3%+%a6%+%a9%==X+X+X goto win
if %a2%+%a5%+%a8%==X+X+X goto win
if %a1%+%a2%+%a3%==O+O+O goto perdu
if %a4%+%a5%+%a6%==O+O+O goto perdu
if %a7%+%a8%+%a9%==O+O+O goto perdu
if %a1%+%a5%+%a9%==O+O+O goto perdu
if %a3%+%a5%+%a7%==O+O+O goto perdu
if %a1%+%a4%+%a7%==O+O+O goto perdu
if %a3%+%a6%+%a9%==O+O+O goto perdu
if %a2%+%a5%+%a8%==O+O+O goto perdu
if %tour%==10 goto non
if %tour%==9 goto non
goto game
:problem
if not %s1%==N goto aset1
if not %s2%==N goto aset2
if not %s3%==N goto aset3
if not %s4%==N goto aset4
if not %s5%==N goto aset5
if not %s6%==N goto aset6
if not %s7%==N goto aset7
if not %s8%==N goto aset8
if not %s9%==N goto aset9
:aset1
set a1=O
set s1=N
goto game
:aset2
set a2=O
set s2=N
goto game
:aset3
set a3=O
set s3=N
goto game
:aset4
set a4=O
set s4=N
goto game
:aset5
set a5=O
set s5=N
goto game
:aset6
set a6=O
set s6=N
goto game
:aset7
set a7=O
set s7=N
goto game
:aset8
set a8=O
set s8=N
goto game
:aset9
set a9=O
set s9=N
goto game
:easy1
if %a1%+%a2%+%a3%==X+2+3 goto 11
if %a4%+%a5%+%a6%==X+5+6 goto 11
if %a7%+%a8%+%a9%==X+8+9 goto 11
if %a1%+%a2%+%a3%==1+X+3 goto 11
if %a4%+%a5%+%a6%==4+X+6 goto 13
if %a7%+%a8%+%a9%==7+X+9 goto 11
if %a1%+%a2%+%a3%==1+2+X goto 11
if %a4%+%a5%+%a6%==4+5+X goto 11
if %a7%+%a8%+%a9%==7+8+X goto 11
goto game
:hard1
if %a1%+%a2%+%a3%==X+2+3 goto 11
if %a4%+%a5%+%a6%==X+5+6 goto 11
if %a7%+%a8%+%a9%==X+8+9 goto 11
if %a1%+%a2%+%a3%==1+X+3 goto 11
if %a4%+%a5%+%a6%==4+X+6 goto 12
if %a7%+%a8%+%a9%==7+X+9 goto 11
if %a1%+%a2%+%a3%==1+2+X goto 11
if %a4%+%a5%+%a6%==4+5+X goto 11
if %a7%+%a8%+%a9%==7+8+X goto 11
:2player
setlocal EnableDelayedExpansion
set a1=1
set a2=2
set a3=3
set a4=4
set a5=5
set a6=6
set a7=7
set a8=8
set a9=9
set s1=A
set s2=A
set s3=A
set s4=A
set s5=A
set s6=A
set s7=A
set s8=A
set s9=A
set tour=0
set sgn=X
goto 3player
:3player
if %tour%==1 set sgn=O
if %tour%==2 set sgn=X
if %tour%==3 set sgn=O
if %tour%==4 set sgn=X
if %tour%==5 set sgn=O
if %tour%==6 set sgn=X
if %tour%==7 set sgn=O
if %tour%==8 set sgn=X
if %tour%==9 set sgn=O
if %tour%==10 set sgn=X
cls
echo.
echo %a1% %a2% %a3%
echo.
echo %a4% %a5% %a6%
echo.
echo %a7% %a8% %a9%
echo.
set /p input=:
if %input%==1 goto d10
if %input%==2 goto d20
if %input%==3 goto d30
if %input%==4 goto d40
if %input%==5 goto d50
if %input%==6 goto d60
if %input%==7 goto d70
if %input%==8 goto d80
if %input%==9 goto d90
goto game
:d10
if %s1%==N goto 3player
set a1=%sgn%
set s1=N
set /a tour=tour+1
goto result3
:d20
if %s2%==N goto 3player
set a2=%sgn%
set s2=N
set /a tour=tour+1
goto result3
:d30
if %s3%==N goto 3player
set a3=%sgn%
set s3=N
set /a tour=tour+1
goto result3
:d40
if %s4%==N goto 3player
set a4=%sgn%
set s4=N
set /a tour=tour+1
goto result3
:d50
if %s5%==N goto 3player
set a5=%sgn%
set s5=N
set /a tour=tour+1
goto result3
:d60
if %s6%==N goto 3player
set a6=%sgn%
set s6=N
set /a tour=tour+1
goto result3
:d70
if %s7%==N goto 3player
set a7=%sgn%
set s7=N
set /a tour=tour+1
goto result3
:d80
if %s8%==N goto g3player
set a8=%sgn%
set s8=N
set /a tour=tour+1
goto result3
:d90
if %s9%==N goto 3player
set a9=%sgn%
set s9=N
set /a tour=tour+1
goto result3
:result3
if %a1%+%a2%+%a3%==X+X+X goto win
if %a4%+%a5%+%a6%==X+X+X goto win
if %a7%+%a8%+%a9%==X+X+X goto win
if %a1%+%a5%+%a9%==X+X+X goto win
if %a3%+%a5%+%a7%==X+X+X goto win
if %a1%+%a4%+%a7%==X+X+X goto win
if %a3%+%a6%+%a9%==X+X+X goto win
if %a2%+%a5%+%a8%==X+X+X goto win
if %a1%+%a2%+%a3%==O+O+O goto perdu
if %a4%+%a5%+%a6%==O+O+O goto perdu
if %a7%+%a8%+%a9%==O+O+O goto perdu
if %a1%+%a5%+%a9%==O+O+O goto perdu
if %a3%+%a5%+%a7%==O+O+O goto perdu
if %a1%+%a4%+%a7%==O+O+O goto perdu
if %a3%+%a6%+%a9%==O+O+O goto perdu
if %a2%+%a5%+%a8%==O+O+O goto perdu
if %tour%==10 goto non
if %tour%==9 goto non
goto 3player
Title Tic Tac Toe by CHB
color c
@mode con lines=85 cols=120
@echo off
:menu
cls
Echo.
echo MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
echo MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
echo MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM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ÍÍͼ
echo.
set /p players=:
if %players%==b goto oneplayer
if %players%==p goto 2player
if not %player%==b goto menu
if not %player%==p goto menu
:oneplayer
color c
@mode con lines=85 cols=120
setlocal EnableDelayedExpansion
set a1=1
set a2=2
set a3=3
set a4=4
set a5=5
set a6=6
set a7=7
set a8=8
set a9=9
set s1=A
set s2=A
set s3=A
set s4=A
set s5=A
set s6=A
set s7=A
set s8=A
set s9=A
set tour=0
@echo off
color c
cls
echo.
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º 1. Easy º
echo º 2. Hard º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
echo.
set /p niv=:
goto game
:game
cls
echo.
echo %a1% %a2% %a3%
echo.
echo %a4% %a5% %a6%
echo.
echo %a7% %a8% %a9%
echo.
set /p input=:
if %input%==1 goto d1
if %input%==2 goto d2
if %input%==3 goto d3
if %input%==4 goto d4
if %input%==5 goto d5
if %input%==6 goto d6
if %input%==7 goto d7
if %input%==8 goto d8
if %input%==9 goto d9
goto game
:d1
if %s1%==N goto game
set a1=X
set s1=N
set /a tour=tour+1
if %tour%==1 goto debut1
goto result
:d2
if %s2%==N goto game
set a2=X
set s2=N
set /a tour=tour+1
if %tour%==1 goto debut1
goto result
:d3
if %s3%==N goto game
set a3=X
set s3=N
set /a tour=tour+1
if %tour%==1 goto debut1
goto result
:d4
if %s4%==N goto game
set a4=X
set s4=N
set /a tour=tour+1
if %tour%==1 goto debut1
goto result
:d5
if %s5%==N goto game
set a5=X
set s5=N
set /a tour=tour+1
if %tour%==1 goto debut1
goto result
:d6
if %s6%==N goto game
set a6=X
set s6=N
set /a tour=tour+1
if %tour%==1 goto debut1
goto result
:d7
if %s7%==N goto game
set a7=X
set s7=N
set /a tour=tour+1
if %tour%==1 goto debut1
goto result
:d8
if %s8%==N goto game
set a8=X
set s8=N
set /a tour=tour+1
if %tour%==1 goto debut1
goto result
:d9
if %s9%==N goto game
set a9=X
set s9=N
set /a tour=tour+1
if %tour%==1 goto debut1
goto result
:result
if %a1%+%a2%+%a3%==X+X+X goto win
if %a4%+%a5%+%a6%==X+X+X goto win
if %a7%+%a8%+%a9%==X+X+X goto win
if %a1%+%a5%+%a9%==X+X+X goto win
if %a3%+%a5%+%a7%==X+X+X goto win
if %a1%+%a4%+%a7%==X+X+X goto win
if %a3%+%a6%+%a9%==X+X+X goto win
if %a2%+%a5%+%a8%==X+X+X goto win
if %a1%+%a2%+%a3%==O+O+O goto perdu
if %a4%+%a5%+%a6%==O+O+O goto perdu
if %a7%+%a8%+%a9%==O+O+O goto perdu
if %a1%+%a5%+%a9%==O+O+O goto perdu
if %a3%+%a5%+%a7%==O+O+O goto perdu
if %a1%+%a4%+%a7%==O+O+O goto perdu
if %a3%+%a6%+%a9%==O+O+O goto perdu
if %a2%+%a5%+%a8%==O+O+O goto perdu
if %tour%==10 goto non
if %tour%==9 goto non
if %tour%==8 goto non
goto choixo
:choixo
set /a tour=tour+1
if %a1%+%a2%+%a3%==X+X+3 goto 13
if %a4%+%a5%+%a6%==X+X+6 goto 12
if %a7%+%a8%+%a9%==X+X+9 goto 14
if %a1%+%a2%+%a3%==1+X+X goto 15
if %a4%+%a5%+%a6%==4+X+X goto 16
if %a7%+%a8%+%a9%==7+X+X goto 17
if %a1%+%a2%+%a3%==O+O+3 goto 13
if %a4%+%a5%+%a6%==O+O+6 goto 12
if %a7%+%a8%+%a9%==O+O+9 goto 14
if %a1%+%a2%+%a3%==1+O+O goto 15
if %a4%+%a5%+%a6%==4+O+O goto 16
if %a7%+%a8%+%a9%==7+O+O goto 17
if %a1%+%a4%+%a7%==O+O+7 goto 17
if %a2%+%a5%+%a8%==O+O+8 goto 18
if %a3%+%a6%+%a9%==O+O+9 goto 14
if %a1%+%a4%+%a7%==1+O+O goto 15
if %a2%+%a5%+%a8%==2+O+O goto 20
if %a3%+%a6%+%a9%==3+O+O goto 13
if %a1%+%a4%+%a7%==X+X+7 goto 17
if %a2%+%a5%+%a8%==X+X+8 goto 18
if %a3%+%a6%+%a9%==X+X+9 goto 14
if %a1%+%a4%+%a7%==1+X+X goto 15
if %a2%+%a5%+%a8%==2+X+X goto 20
if %a3%+%a6%+%a9%==3+X+X goto 13
if %a1%+%a5%+%a9%==O+O+9 goto 14
if %a3%+%a5%+%a7%==O+O+7 goto 17
if %a1%+%a5%+%a9%==1+O+O goto 15
if %a3%+%a5%+%a7%==3+O+O goto 13
if %a3%+%a5%+%a7%==O+5+O goto 11
if %a1%+%a5%+%a9%==O+5+O goto 11
if %a1%+%a5%+%a9%==X+X+9 goto 14
if %a3%+%a5%+%a7%==X+X+7 goto 17
if %a1%+%a5%+%a9%==1+X+X goto 15
if %a3%+%a5%+%a7%==3+X+X goto 13
if %a3%+%a5%+%a7%==X+5+X goto 11
if %a1%+%a5%+%a9%==X+5+X goto 11
if %a1%+%a4%+%a7%==O+4+O goto 16
if %a2%+%a5%+%a8%==O+5+O goto 11
if %a3%+%a6%+%a9%==O+6+O goto 12
if %a1%+%a4%+%a7%==X+4+X goto 16
if %a2%+%a5%+%a8%==X+5+X goto 11
if %a3%+%a6%+%a9%==X+6+X goto 12
if %a1%+%a2%+%a3%==X+2+X goto 20
if %a4%+%a5%+%a6%==X+5+X goto 11
if %a7%+%a8%+%a9%==X+8+X goto 18
goto problem
goto game
:win
echo.
echo You win
echo.
echo Press for go Menu
pause>nul
goto menu
:perdu
echo.
echo You lost
echo.
echo Press for Menu
pause>nul
goto menu
:non
echo.
echo No winner
echo.
echo Press for go Menu
pause>nul
goto menu
:11
if %s5%==N goto choix0
set a5=O
set s5=N
goto result2
:12
if %s6%==N goto choix0
set a6=O
set s6=N
goto result2
:13
if %s3%==N goto choix0
set a3=O
set s3=N
goto result2
:14
if %s9%==N goto choix0
set a9=O
set s9=N
goto result2
:15
if %s1%==N goto choix0
set a1=O
set s1=N
goto result2
:16
if %s4%==N goto choix0
set a4=O
set s4=N
goto result2
:17
if %s7%==N goto choix0
set a7=O
set s7=N
goto result2
:18
if %s8%==N goto choixo
set a8=O
set s8=N
goto result2
:20
if %s2%==N goto choix0
set a2=O
set s2=N
goto result2
:debut1
if %niv%==2 goto easy1
if %niv%==1 goto hard1
:result2
if %a1%+%a2%+%a3%==X+X+X goto win
if %a4%+%a5%+%a6%==X+X+X goto win
if %a7%+%a8%+%a9%==X+X+X goto win
if %a1%+%a5%+%a9%==X+X+X goto win
if %a3%+%a5%+%a7%==X+X+X goto win
if %a1%+%a4%+%a7%==X+X+X goto win
if %a3%+%a6%+%a9%==X+X+X goto win
if %a2%+%a5%+%a8%==X+X+X goto win
if %a1%+%a2%+%a3%==O+O+O goto perdu
if %a4%+%a5%+%a6%==O+O+O goto perdu
if %a7%+%a8%+%a9%==O+O+O goto perdu
if %a1%+%a5%+%a9%==O+O+O goto perdu
if %a3%+%a5%+%a7%==O+O+O goto perdu
if %a1%+%a4%+%a7%==O+O+O goto perdu
if %a3%+%a6%+%a9%==O+O+O goto perdu
if %a2%+%a5%+%a8%==O+O+O goto perdu
if %tour%==10 goto non
if %tour%==9 goto non
goto game
:problem
if not %s1%==N goto aset1
if not %s2%==N goto aset2
if not %s3%==N goto aset3
if not %s4%==N goto aset4
if not %s5%==N goto aset5
if not %s6%==N goto aset6
if not %s7%==N goto aset7
if not %s8%==N goto aset8
if not %s9%==N goto aset9
:aset1
set a1=O
set s1=N
goto game
:aset2
set a2=O
set s2=N
goto game
:aset3
set a3=O
set s3=N
goto game
:aset4
set a4=O
set s4=N
goto game
:aset5
set a5=O
set s5=N
goto game
:aset6
set a6=O
set s6=N
goto game
:aset7
set a7=O
set s7=N
goto game
:aset8
set a8=O
set s8=N
goto game
:aset9
set a9=O
set s9=N
goto game
:easy1
if %a1%+%a2%+%a3%==X+2+3 goto 11
if %a4%+%a5%+%a6%==X+5+6 goto 11
if %a7%+%a8%+%a9%==X+8+9 goto 11
if %a1%+%a2%+%a3%==1+X+3 goto 11
if %a4%+%a5%+%a6%==4+X+6 goto 13
if %a7%+%a8%+%a9%==7+X+9 goto 11
if %a1%+%a2%+%a3%==1+2+X goto 11
if %a4%+%a5%+%a6%==4+5+X goto 11
if %a7%+%a8%+%a9%==7+8+X goto 11
goto game
:hard1
if %a1%+%a2%+%a3%==X+2+3 goto 11
if %a4%+%a5%+%a6%==X+5+6 goto 11
if %a7%+%a8%+%a9%==X+8+9 goto 11
if %a1%+%a2%+%a3%==1+X+3 goto 11
if %a4%+%a5%+%a6%==4+X+6 goto 12
if %a7%+%a8%+%a9%==7+X+9 goto 11
if %a1%+%a2%+%a3%==1+2+X goto 11
if %a4%+%a5%+%a6%==4+5+X goto 11
if %a7%+%a8%+%a9%==7+8+X goto 11
:2player
setlocal EnableDelayedExpansion
set a1=1
set a2=2
set a3=3
set a4=4
set a5=5
set a6=6
set a7=7
set a8=8
set a9=9
set s1=A
set s2=A
set s3=A
set s4=A
set s5=A
set s6=A
set s7=A
set s8=A
set s9=A
set tour=0
set sgn=X
goto 3player
:3player
if %tour%==1 set sgn=O
if %tour%==2 set sgn=X
if %tour%==3 set sgn=O
if %tour%==4 set sgn=X
if %tour%==5 set sgn=O
if %tour%==6 set sgn=X
if %tour%==7 set sgn=O
if %tour%==8 set sgn=X
if %tour%==9 set sgn=O
if %tour%==10 set sgn=X
cls
echo.
echo %a1% %a2% %a3%
echo.
echo %a4% %a5% %a6%
echo.
echo %a7% %a8% %a9%
echo.
set /p input=:
if %input%==1 goto d10
if %input%==2 goto d20
if %input%==3 goto d30
if %input%==4 goto d40
if %input%==5 goto d50
if %input%==6 goto d60
if %input%==7 goto d70
if %input%==8 goto d80
if %input%==9 goto d90
goto game
:d10
if %s1%==N goto 3player
set a1=%sgn%
set s1=N
set /a tour=tour+1
goto result3
:d20
if %s2%==N goto 3player
set a2=%sgn%
set s2=N
set /a tour=tour+1
goto result3
:d30
if %s3%==N goto 3player
set a3=%sgn%
set s3=N
set /a tour=tour+1
goto result3
:d40
if %s4%==N goto 3player
set a4=%sgn%
set s4=N
set /a tour=tour+1
goto result3
:d50
if %s5%==N goto 3player
set a5=%sgn%
set s5=N
set /a tour=tour+1
goto result3
:d60
if %s6%==N goto 3player
set a6=%sgn%
set s6=N
set /a tour=tour+1
goto result3
:d70
if %s7%==N goto 3player
set a7=%sgn%
set s7=N
set /a tour=tour+1
goto result3
:d80
if %s8%==N goto g3player
set a8=%sgn%
set s8=N
set /a tour=tour+1
goto result3
:d90
if %s9%==N goto 3player
set a9=%sgn%
set s9=N
set /a tour=tour+1
goto result3
:result3
if %a1%+%a2%+%a3%==X+X+X goto win
if %a4%+%a5%+%a6%==X+X+X goto win
if %a7%+%a8%+%a9%==X+X+X goto win
if %a1%+%a5%+%a9%==X+X+X goto win
if %a3%+%a5%+%a7%==X+X+X goto win
if %a1%+%a4%+%a7%==X+X+X goto win
if %a3%+%a6%+%a9%==X+X+X goto win
if %a2%+%a5%+%a8%==X+X+X goto win
if %a1%+%a2%+%a3%==O+O+O goto perdu
if %a4%+%a5%+%a6%==O+O+O goto perdu
if %a7%+%a8%+%a9%==O+O+O goto perdu
if %a1%+%a5%+%a9%==O+O+O goto perdu
if %a3%+%a5%+%a7%==O+O+O goto perdu
if %a1%+%a4%+%a7%==O+O+O goto perdu
if %a3%+%a6%+%a9%==O+O+O goto perdu
if %a2%+%a5%+%a8%==O+O+O goto perdu
if %tour%==10 goto non
if %tour%==9 goto non
goto 3player