Batch Index du Forum
S’enregistrerRechercherFAQMembresGroupesConnexion
Répondre au sujet Page 1 sur 1
Générateur de grille SUDOKU
Auteur Message
Répondre en citant
Message Générateur de grille SUDOKU 
Hello,

Voici l'idée:
Coder un SUDOKU en batch !!

J'ai commencé quelque chose, mais si il s'avère que la gestion d'une grille aléatoirement est trop compliquée,
on poura toujours passer par des grilles toute-faites, soit incluses dans le batch, soit en fichiers externes ...


Code:

@echo off
title SUDOKU  ^|  By STRYK ( beta: generator )
mode con cols=54 lines=38 &color 1A

:REPLAY

set /a TIME_H = %time:~0,2% * 3600
set /a TIME_M = %time:~3,2% * 60
set TIME_S=%time:~6,2%
set /a TIME_START = TIME_H + TIME_M + TIME_S

set B1=Û
set B2=Û
set B3=Û
set B4=Û
set B5=Û
set B6=Û
set B7=Û
set B8=Û
set B9=Û
set C1=Û
set C2=Û
set C3=Û
set C4=Û
set C5=Û
set C6=Û
set C7=Û
set C8=Û
set C9=Û
set D1=Û
set D2=Û
set D3=Û
set D4=Û
set D5=Û
set D6=Û
set D7=Û
set D8=Û
set D9=Û
set E1=Û
set E2=Û
set E3=Û
set E4=Û
set E5=Û
set E6=Û
set E7=Û
set E8=Û
set E9=Û
set F1=Û
set F2=Û
set F3=Û
set F4=Û
set F5=Û
set F6=Û
set F7=Û
set F8=Û
set F9=Û
set G1=Û
set G2=Û
set G3=Û
set G4=Û
set G5=Û
set G6=Û
set G7=Û
set G8=Û
set G9=Û
set H1=Û
set H2=Û
set H3=Û
set H4=Û
set H5=Û
set H6=Û
set H7=Û
set H8=Û
set H9=Û
set I1=Û
set I2=Û
set I3=Û
set I4=Û
set I5=Û
set I6=Û
set I7=Û
set I8=Û
set I9=Û

::  ##################   LINE A  ###################

:RECOMP_A1
set /a A1=%RANDOM%%%10
if %A1%==0 goto :RECOMP_A1

:RECOMP_A2
set /a A2=%RANDOM%%%10
if %A2%==0 goto :RECOMP_A2
if %A2%==%A1% goto :RECOMP_A2

:RECOMP_A3
set /a A3=%RANDOM%%%10
if %A3%==0 goto :RECOMP_A3
if %A3%==%A1% goto :RECOMP_A3
if %A3%==%A2% goto :RECOMP_A3

:RECOMP_A4
set /a A4=%RANDOM%%%10
if %A4%==0 goto :RECOMP_A4
if %A4%==%A1% goto :RECOMP_A4
if %A4%==%A2% goto :RECOMP_A4
if %A4%==%A3% goto :RECOMP_A4

:RECOMP_A5
set /a A5=%RANDOM%%%10
if %A5%==0 goto :RECOMP_A5
if %A5%==%A1% goto :RECOMP_A5
if %A5%==%A2% goto :RECOMP_A5
if %A5%==%A3% goto :RECOMP_A5
if %A5%==%A4% goto :RECOMP_A5

:RECOMP_A6
set /a A6=%RANDOM%%%10
if %A6%==0 goto :RECOMP_A6
if %A6%==%A1% goto :RECOMP_A6
if %A6%==%A2% goto :RECOMP_A6
if %A6%==%A3% goto :RECOMP_A6
if %A6%==%A4% goto :RECOMP_A6
if %A6%==%A5% goto :RECOMP_A6

:RECOMP_A7
set /a A7=%RANDOM%%%10
if %A7%==0 goto :RECOMP_A7
if %A7%==%A1% goto :RECOMP_A7
if %A7%==%A2% goto :RECOMP_A7
if %A7%==%A3% goto :RECOMP_A7
if %A7%==%A4% goto :RECOMP_A7
if %A7%==%A5% goto :RECOMP_A7
if %A7%==%A6% goto :RECOMP_A7

:RECOMP_A8
set /a A8=%RANDOM%%%10
if %A8%==0 goto :RECOMP_A8
if %A8%==%A1% goto :RECOMP_A8
if %A8%==%A2% goto :RECOMP_A8
if %A8%==%A3% goto :RECOMP_A8
if %A8%==%A4% goto :RECOMP_A8
if %A8%==%A5% goto :RECOMP_A8
if %A8%==%A6% goto :RECOMP_A8
if %A8%==%A7% goto :RECOMP_A8

:RECOMP_A9
set /a A9=%RANDOM%%%10
if %A9%==0 goto :RECOMP_A9
if %A9%==%A1% goto :RECOMP_A9
if %A9%==%A2% goto :RECOMP_A9
if %A9%==%A3% goto :RECOMP_A9
if %A9%==%A4% goto :RECOMP_A9
if %A9%==%A5% goto :RECOMP_A9
if %A9%==%A6% goto :RECOMP_A9
if %A9%==%A7% goto :RECOMP_A9
if %A9%==%A8% goto :RECOMP_A9

::  ##################   LINE B  ###################

:RECOMP_B1
call :VERIF
set /a B1=%RANDOM%%%10
if %B1%==0 goto :RECOMP_B1
if %B1%==%A1% goto :RECOMP_B1
if %B1%==%A2% goto :RECOMP_B1
if %B1%==%A3% goto :RECOMP_B1

:RECOMP_B2
call :VERIF
set /a B2=%RANDOM%%%10
if %B2%==0 goto :RECOMP_B2
if %B2%==%B1% goto :RECOMP_B2
if %B2%==%A1% goto :RECOMP_B2
if %B2%==%A2% goto :RECOMP_B2
if %B2%==%A3% goto :RECOMP_B2

:RECOMP_B3
call :VERIF
set /a B3=%RANDOM%%%10
if %B3%==0 goto :RECOMP_B3
if %B3%==%B1% goto :RECOMP_B3
if %B3%==%B2% goto :RECOMP_B3
if %B3%==%A1% goto :RECOMP_B3
if %B3%==%A2% goto :RECOMP_B3
if %B3%==%A3% goto :RECOMP_B3

:RECOMP_B4
call :VERIF
set /a B4=%RANDOM%%%10
if %B4%==0 goto :RECOMP_B4
if %B4%==%B1% goto :RECOMP_B4
if %B4%==%B2% goto :RECOMP_B4
if %B4%==%B3% goto :RECOMP_B4
if %B4%==%A4% goto :RECOMP_B4
if %B4%==%A5% goto :RECOMP_B4
if %B4%==%A6% goto :RECOMP_B4

:RECOMP_B5
call :VERIF
set /a B5=%RANDOM%%%10
if %B5%==0 goto :RECOMP_B5
if %B5%==%B1% goto :RECOMP_B5
if %B5%==%B2% goto :RECOMP_B5
if %B5%==%B3% goto :RECOMP_B5
if %B5%==%B4% goto :RECOMP_B5
if %B5%==%A4% goto :RECOMP_B5
if %B5%==%A5% goto :RECOMP_B5
if %B5%==%A6% goto :RECOMP_B5

:RECOMP_B6
call :VERIF
set /a B6=%RANDOM%%%10
if %B6%==0 goto :RECOMP_B6
if %B6%==%B1% goto :RECOMP_B6
if %B6%==%B2% goto :RECOMP_B6
if %B6%==%B3% goto :RECOMP_B6
if %B6%==%B4% goto :RECOMP_B6
if %B6%==%B5% goto :RECOMP_B6
if %B6%==%A4% goto :RECOMP_B6
if %B6%==%A5% goto :RECOMP_B6
if %B6%==%A6% goto :RECOMP_B6

:RECOMP_B7
call :VERIF
set /a B7=%RANDOM%%%10
if %B7%==0 goto :RECOMP_B7
if %B7%==%B1% goto :RECOMP_B7
if %B7%==%B2% goto :RECOMP_B7
if %B7%==%B3% goto :RECOMP_B7
if %B7%==%B4% goto :RECOMP_B7
if %B7%==%B5% goto :RECOMP_B7
if %B7%==%B6% goto :RECOMP_B7
if %B7%==%A7% goto :RECOMP_B7
if %B7%==%A8% goto :RECOMP_B7
if %B7%==%A9% goto :RECOMP_B7

:RECOMP_B8
call :VERIF
set /a B8=%RANDOM%%%10
if %B8%==0 goto :RECOMP_B8
if %B8%==%B1% goto :RECOMP_B8
if %B8%==%B2% goto :RECOMP_B8
if %B8%==%B3% goto :RECOMP_B8
if %B8%==%B4% goto :RECOMP_B8
if %B8%==%B5% goto :RECOMP_B8
if %B8%==%B6% goto :RECOMP_B8
if %B8%==%B7% goto :RECOMP_B8
if %B8%==%A7% goto :RECOMP_B8
if %B8%==%A8% goto :RECOMP_B8
if %B8%==%A9% goto :RECOMP_B8

:RECOMP_B9
call :VERIF
set /a B9=%RANDOM%%%10
if %B9%==0 goto :RECOMP_B9
if %B9%==%B1% goto :RECOMP_B9
if %B9%==%B2% goto :RECOMP_B9
if %B9%==%B3% goto :RECOMP_B9
if %B9%==%B4% goto :RECOMP_B9
if %B9%==%B5% goto :RECOMP_B9
if %B9%==%B6% goto :RECOMP_B9
if %B9%==%B7% goto :RECOMP_B9
if %B9%==%B8% goto :RECOMP_B9
if %B9%==%A7% goto :RECOMP_B9
if %B9%==%A8% goto :RECOMP_B9
if %B9%==%A9% goto :RECOMP_B9

::  ##################   LINE C  ###################

:RECOMP_C1
call :VERIF
set /a C1=%RANDOM%%%10
if %C1%==0 goto :RECOMP_C1
if %C1%==%A1% goto :RECOMP_C1
if %C1%==%A2% goto :RECOMP_C1
if %C1%==%A3% goto :RECOMP_C1
if %C1%==%B1% goto :RECOMP_C1
if %C1%==%B2% goto :RECOMP_C1
if %C1%==%B3% goto :RECOMP_C1

:RECOMP_C2
call :VERIF
set /a C2=%RANDOM%%%10
if %C2%==0 goto :RECOMP_C2
if %C2%==%C1% goto :RECOMP_C2
if %C2%==%A1% goto :RECOMP_C2
if %C2%==%A2% goto :RECOMP_C2
if %C2%==%A3% goto :RECOMP_C2
if %C2%==%B1% goto :RECOMP_C2
if %C2%==%B2% goto :RECOMP_C2
if %C2%==%B3% goto :RECOMP_C2

:RECOMP_C3
call :VERIF
set /a C3=%RANDOM%%%10
if %C3%==0 goto :RECOMP_C3
if %C3%==%C1% goto :RECOMP_C3
if %C3%==%C2% goto :RECOMP_C3
if %C3%==%A1% goto :RECOMP_C3
if %C3%==%A2% goto :RECOMP_C3
if %C3%==%A3% goto :RECOMP_C3
if %C3%==%B1% goto :RECOMP_C3
if %C3%==%B2% goto :RECOMP_C3
if %C3%==%B3% goto :RECOMP_C3

:RECOMP_C4
call :VERIF
set /a C4=%RANDOM%%%10
if %C4%==0 goto :RECOMP_C4
if %C4%==%C1% goto :RECOMP_C4
if %C4%==%C2% goto :RECOMP_C4
if %C4%==%C3% goto :RECOMP_C4
if %C4%==%A4% goto :RECOMP_C4
if %C4%==%A5% goto :RECOMP_C4
if %C4%==%A6% goto :RECOMP_C4
if %C4%==%B4% goto :RECOMP_C4
if %C4%==%B5% goto :RECOMP_C4
if %C4%==%B6% goto :RECOMP_C4

:RECOMP_C5
call :VERIF
set /a C5=%RANDOM%%%10
if %C5%==0 goto :RECOMP_C5
if %C5%==%C1% goto :RECOMP_C5
if %C5%==%C2% goto :RECOMP_C5
if %C5%==%C3% goto :RECOMP_C5
if %C5%==%C4% goto :RECOMP_C5
if %C5%==%A4% goto :RECOMP_C5
if %C5%==%A5% goto :RECOMP_C5
if %C5%==%A6% goto :RECOMP_C5
if %C5%==%B4% goto :RECOMP_C5
if %C5%==%B5% goto :RECOMP_C5
if %C5%==%B6% goto :RECOMP_C5

:RECOMP_C6
call :VERIF
set /a C6=%RANDOM%%%10
if %C6%==0 goto :RECOMP_C6
if %C6%==%C1% goto :RECOMP_C6
if %C6%==%C2% goto :RECOMP_C6
if %C6%==%C3% goto :RECOMP_C6
if %C6%==%C4% goto :RECOMP_C6
if %C6%==%C5% goto :RECOMP_C6
if %C6%==%A4% goto :RECOMP_C6
if %C6%==%A5% goto :RECOMP_C6
if %C6%==%A6% goto :RECOMP_C6
if %C6%==%B4% goto :RECOMP_C6
if %C6%==%B5% goto :RECOMP_C6
if %C6%==%B6% goto :RECOMP_C6

:RECOMP_C7
call :VERIF
set /a C7=%RANDOM%%%10
if %C7%==0 goto :RECOMP_C7
if %C7%==%C1% goto :RECOMP_C7
if %C7%==%C2% goto :RECOMP_C7
if %C7%==%C3% goto :RECOMP_C7
if %C7%==%C4% goto :RECOMP_C7
if %C7%==%C5% goto :RECOMP_C7
if %C7%==%C6% goto :RECOMP_C7
if %C7%==%A7% goto :RECOMP_C7
if %C7%==%A8% goto :RECOMP_C7
if %C7%==%A9% goto :RECOMP_C7
if %C7%==%B7% goto :RECOMP_C7
if %C7%==%B8% goto :RECOMP_C7
if %C7%==%B9% goto :RECOMP_C7

:RECOMP_C8
call :VERIF
set /a C8=%RANDOM%%%10
if %C8%==0 goto :RECOMP_C8
if %C8%==%C1% goto :RECOMP_C8
if %C8%==%C2% goto :RECOMP_C8
if %C8%==%C3% goto :RECOMP_C8
if %C8%==%C4% goto :RECOMP_C8
if %C8%==%C5% goto :RECOMP_C8
if %C8%==%C6% goto :RECOMP_C8
if %C8%==%C7% goto :RECOMP_C8
if %C8%==%A7% goto :RECOMP_C8
if %C8%==%A8% goto :RECOMP_C8
if %C8%==%A9% goto :RECOMP_C8
if %C8%==%B7% goto :RECOMP_C8
if %C8%==%B8% goto :RECOMP_C8
if %C8%==%B9% goto :RECOMP_C8

:RECOMP_C9
call :VERIF
set /a C9=%RANDOM%%%10
if %C9%==0 goto :RECOMP_C9
if %C9%==%C1% goto :RECOMP_C9
if %C9%==%C2% goto :RECOMP_C9
if %C9%==%C3% goto :RECOMP_C9
if %C9%==%C4% goto :RECOMP_C9
if %C9%==%C5% goto :RECOMP_C9
if %C9%==%C6% goto :RECOMP_C9
if %C9%==%C7% goto :RECOMP_C9
if %C9%==%C8% goto :RECOMP_C9
if %C9%==%A7% goto :RECOMP_C9
if %C9%==%A8% goto :RECOMP_C9
if %C9%==%A9% goto :RECOMP_C9
if %C9%==%B7% goto :RECOMP_C9
if %C9%==%B8% goto :RECOMP_C9
if %C9%==%B9% goto :RECOMP_C9

::  ##################   LINE D  ###################

:RECOMP_D1
call :VERIF
set /a D1=%RANDOM%%%10
if %D1%==0 goto :RECOMP_D1
if %D1%==%A1% goto :RECOMP_D1
if %D1%==%B1% goto :RECOMP_D1
if %D1%==%C1% goto :RECOMP_D1

:RECOMP_D2
call :VERIF
set /a D2=%RANDOM%%%10
if %D2%==0 goto :RECOMP_D2
if %D2%==%D1% goto :RECOMP_D2
if %D2%==%A2% goto :RECOMP_D2
if %D2%==%B2% goto :RECOMP_D2
if %D2%==%C2% goto :RECOMP_D2

:RECOMP_D3
call :VERIF
set /a D3=%RANDOM%%%10
if %D3%==0 goto :RECOMP_D3
if %D3%==%D1% goto :RECOMP_D3
if %D3%==%D2% goto :RECOMP_D3
if %D3%==%A3% goto :RECOMP_D3
if %D3%==%B3% goto :RECOMP_D3
if %D3%==%C3% goto :RECOMP_D3

:RECOMP_D4
call :VERIF
set /a D4=%RANDOM%%%10
if %D4%==0 goto :RECOMP_D4
if %D4%==%D1% goto :RECOMP_D4
if %D4%==%D2% goto :RECOMP_D4
if %D4%==%D3% goto :RECOMP_D4
if %D4%==%A4% goto :RECOMP_D4
if %D4%==%B4% goto :RECOMP_D4
if %D4%==%C4% goto :RECOMP_D4

:RECOMP_D5
call :VERIF
set /a D5=%RANDOM%%%10
if %D5%==0 goto :RECOMP_D5
if %D5%==%D1% goto :RECOMP_D5
if %D5%==%D2% goto :RECOMP_D5
if %D5%==%D3% goto :RECOMP_D5
if %D5%==%D4% goto :RECOMP_D5
if %D5%==%A5% goto :RECOMP_D5
if %D5%==%B5% goto :RECOMP_D5
if %D5%==%C5% goto :RECOMP_D5

:RECOMP_D6
call :VERIF
set /a D6=%RANDOM%%%10
if %D6%==0 goto :RECOMP_D6
if %D6%==%D1% goto :RECOMP_D6
if %D6%==%D2% goto :RECOMP_D6
if %D6%==%D3% goto :RECOMP_D6
if %D6%==%D4% goto :RECOMP_D6
if %D6%==%D5% goto :RECOMP_D6
if %D6%==%A6% goto :RECOMP_D6
if %D6%==%B6% goto :RECOMP_D6
if %D6%==%C6% goto :RECOMP_D6

:RECOMP_D7
call :VERIF
set /a D7=%RANDOM%%%10
if %D7%==0 goto :RECOMP_D7
if %D7%==%D1% goto :RECOMP_D7
if %D7%==%D2% goto :RECOMP_D7
if %D7%==%D3% goto :RECOMP_D7
if %D7%==%D4% goto :RECOMP_D7
if %D7%==%D5% goto :RECOMP_D7
if %D7%==%D6% goto :RECOMP_D7
if %D7%==%A7% goto :RECOMP_D7
if %D7%==%B7% goto :RECOMP_D7
if %D7%==%C7% goto :RECOMP_D7

:RECOMP_D8
call :VERIF
set /a D8=%RANDOM%%%10
if %D8%==0 goto :RECOMP_D8
if %D8%==%D1% goto :RECOMP_D8
if %D8%==%D2% goto :RECOMP_D8
if %D8%==%D3% goto :RECOMP_D8
if %D8%==%D4% goto :RECOMP_D8
if %D8%==%D5% goto :RECOMP_D8
if %D8%==%D6% goto :RECOMP_D8
if %D8%==%D7% goto :RECOMP_D8
if %D8%==%A8% goto :RECOMP_D8
if %D8%==%B8% goto :RECOMP_D8
if %D8%==%C8% goto :RECOMP_D8

:RECOMP_D9
call :VERIF
set /a D9=%RANDOM%%%10
if %D9%==0 goto :RECOMP_D9
if %D9%==%D1% goto :RECOMP_D9
if %D9%==%D2% goto :RECOMP_D9
if %D9%==%D3% goto :RECOMP_D9
if %D9%==%D4% goto :RECOMP_D9
if %D9%==%D5% goto :RECOMP_D9
if %D9%==%D6% goto :RECOMP_D9
if %D9%==%D7% goto :RECOMP_D9
if %D9%==%D8% goto :RECOMP_D9
if %D9%==%A9% goto :RECOMP_D9
if %D9%==%B9% goto :RECOMP_D9
if %D9%==%C9% goto :RECOMP_D9

::  ##################   LINE E  ###################

:RECOMP_E1
call :VERIF
set /a E1=%RANDOM%%%10
if %E1%==0 goto :RECOMP_E1
if %E1%==%A1% goto :RECOMP_E1
if %E1%==%B1% goto :RECOMP_E1
if %E1%==%C1% goto :RECOMP_E1
if %E1%==%D1% goto :RECOMP_E1
if %E1%==%D2% goto :RECOMP_E1
if %E1%==%D3% goto :RECOMP_E1

:RECOMP_E2
call :VERIF
set /a E2=%RANDOM%%%10
if %E2%==0 goto :RECOMP_E2
if %E2%==%E1% goto :RECOMP_E2
if %E2%==%A2% goto :RECOMP_E2
if %E2%==%B2% goto :RECOMP_E2
if %E2%==%C2% goto :RECOMP_E2
if %E2%==%D2% goto :RECOMP_E2
if %E2%==%D1% goto :RECOMP_E2
if %E2%==%D3% goto :RECOMP_E2

:RECOMP_E3
call :VERIF
set /a E3=%RANDOM%%%10
if %E3%==0 goto :RECOMP_E3
if %E3%==%E1% goto :RECOMP_E3
if %E3%==%E2% goto :RECOMP_E3
if %E3%==%A3% goto :RECOMP_E3
if %E3%==%B3% goto :RECOMP_E3
if %E3%==%C3% goto :RECOMP_E3
if %E3%==%D3% goto :RECOMP_E3
if %E3%==%D1% goto :RECOMP_E3
if %E3%==%D2% goto :RECOMP_E3

:RECOMP_E4
call :VERIF
set /a E4=%RANDOM%%%10
if %E4%==0 goto :RECOMP_E4
if %E4%==%E1% goto :RECOMP_E4
if %E4%==%E2% goto :RECOMP_E4
if %E4%==%E3% goto :RECOMP_E4
if %E4%==%A4% goto :RECOMP_E4
if %E4%==%B4% goto :RECOMP_E4
if %E4%==%C4% goto :RECOMP_E4
if %E4%==%D4% goto :RECOMP_E4
if %E4%==%D5% goto :RECOMP_E4
if %E4%==%D6% goto :RECOMP_E4

:RECOMP_E5
call :VERIF
set /a E5=%RANDOM%%%10
if %E5%==0 goto :RECOMP_E5
if %E5%==%E1% goto :RECOMP_E5
if %E5%==%E2% goto :RECOMP_E5
if %E5%==%E3% goto :RECOMP_E5
if %E5%==%E4% goto :RECOMP_E5
if %E5%==%A5% goto :RECOMP_E5
if %E5%==%B5% goto :RECOMP_E5
if %E5%==%C5% goto :RECOMP_E5
if %E5%==%D5% goto :RECOMP_E5
if %E5%==%D4% goto :RECOMP_E5
if %E5%==%D6% goto :RECOMP_E5

:RECOMP_E6
call :VERIF
set /a E6=%RANDOM%%%10
if %E6%==0 goto :RECOMP_E6
if %E6%==%E1% goto :RECOMP_E6
if %E6%==%E2% goto :RECOMP_E6
if %E6%==%E3% goto :RECOMP_E6
if %E6%==%E4% goto :RECOMP_E6
if %E6%==%E5% goto :RECOMP_E6
if %E6%==%A6% goto :RECOMP_E6
if %E6%==%B6% goto :RECOMP_E6
if %E6%==%C6% goto :RECOMP_E6
if %E6%==%D6% goto :RECOMP_E6
if %E6%==%D4% goto :RECOMP_E6
if %E6%==%D5% goto :RECOMP_E6

:RECOMP_E7
call :VERIF
set /a E7=%RANDOM%%%10
if %E7%==0 goto :RECOMP_E7
if %E7%==%E1% goto :RECOMP_E7
if %E7%==%E2% goto :RECOMP_E7
if %E7%==%E3% goto :RECOMP_E7
if %E7%==%E4% goto :RECOMP_E7
if %E7%==%E5% goto :RECOMP_E7
if %E7%==%E6% goto :RECOMP_E7
if %E7%==%A7% goto :RECOMP_E7
if %E7%==%B7% goto :RECOMP_E7
if %E7%==%C7% goto :RECOMP_E7
if %E7%==%D7% goto :RECOMP_E7
if %E7%==%D8% goto :RECOMP_E7
if %E7%==%D9% goto :RECOMP_E7

:RECOMP_E8
call :VERIF
set /a E8=%RANDOM%%%10
if %E8%==0 goto :RECOMP_E8
if %E8%==%E1% goto :RECOMP_E8
if %E8%==%E2% goto :RECOMP_E8
if %E8%==%E3% goto :RECOMP_E8
if %E8%==%E4% goto :RECOMP_E8
if %E8%==%E5% goto :RECOMP_E8
if %E8%==%E6% goto :RECOMP_E8
if %E8%==%E7% goto :RECOMP_E8
if %E8%==%A8% goto :RECOMP_E8
if %E8%==%B8% goto :RECOMP_E8
if %E8%==%C8% goto :RECOMP_E8
if %E8%==%D8% goto :RECOMP_E8
if %E8%==%D7% goto :RECOMP_E8
if %E8%==%D9% goto :RECOMP_E8

:RECOMP_E9
call :VERIF
set /a E9=%RANDOM%%%10
if %E9%==0 goto :RECOMP_E9
if %E9%==%E1% goto :RECOMP_E9
if %E9%==%E2% goto :RECOMP_E9
if %E9%==%E3% goto :RECOMP_E9
if %E9%==%E4% goto :RECOMP_E9
if %E9%==%E5% goto :RECOMP_E9
if %E9%==%E6% goto :RECOMP_E9
if %E9%==%E7% goto :RECOMP_E9
if %E9%==%E8% goto :RECOMP_E9
if %E9%==%A9% goto :RECOMP_E9
if %E9%==%B9% goto :RECOMP_E9
if %E9%==%C9% goto :RECOMP_E9
if %E9%==%D9% goto :RECOMP_E9
if %E9%==%D7% goto :RECOMP_E9
if %E9%==%D8% goto :RECOMP_E9

::  ##################   LINE F  ###################

:RECOMP_F1
call :VERIF
set /a F1=%RANDOM%%%10
if %F1%==0 goto :RECOMP_F1
if %F1%==%A1% goto :RECOMP_F1
if %F1%==%B1% goto :RECOMP_F1
if %F1%==%C1% goto :RECOMP_F1
if %F1%==%D1% goto :RECOMP_F1
if %F1%==%E1% goto :RECOMP_F1
if %F1%==%D2% goto :RECOMP_F1
if %F1%==%D3% goto :RECOMP_F1
if %F1%==%E2% goto :RECOMP_F1
if %F1%==%E3% goto :RECOMP_F1

:RECOMP_F2
call :VERIF
set /a F2=%RANDOM%%%10
if %F2%==0 goto :RECOMP_F2
if %F2%==%F1% goto :RECOMP_F2
if %F2%==%A2% goto :RECOMP_F2
if %F2%==%B2% goto :RECOMP_F2
if %F2%==%C2% goto :RECOMP_F2
if %F2%==%D2% goto :RECOMP_F2
if %F2%==%E2% goto :RECOMP_F2
if %F2%==%D1% goto :RECOMP_F2
if %F2%==%D3% goto :RECOMP_F2
if %F2%==%E1% goto :RECOMP_F2
if %F2%==%E3% goto :RECOMP_F2

:RECOMP_F3
call :VERIF
set /a F3=%RANDOM%%%10
if %F3%==0 goto :RECOMP_F3
if %F3%==%F1% goto :RECOMP_F3
if %F3%==%F2% goto :RECOMP_F3
if %F3%==%A3% goto :RECOMP_F3
if %F3%==%B3% goto :RECOMP_F3
if %F3%==%C3% goto :RECOMP_F3
if %F3%==%D3% goto :RECOMP_F3
if %F3%==%E3% goto :RECOMP_F3
if %F3%==%D1% goto :RECOMP_F3
if %F3%==%D2% goto :RECOMP_F3
if %F3%==%E1% goto :RECOMP_F3
if %F3%==%E2% goto :RECOMP_F3

:RECOMP_F4
call :VERIF
set /a F4=%RANDOM%%%10
if %F4%==0 goto :RECOMP_F4
if %F4%==%F1% goto :RECOMP_F4
if %F4%==%F2% goto :RECOMP_F4
if %F4%==%F3% goto :RECOMP_F4
if %F4%==%A4% goto :RECOMP_F4
if %F4%==%B4% goto :RECOMP_F4
if %F4%==%C4% goto :RECOMP_F4
if %F4%==%D4% goto :RECOMP_F4
if %F4%==%E4% goto :RECOMP_F4
if %F4%==%D5% goto :RECOMP_F4
if %F4%==%D6% goto :RECOMP_F4
if %F4%==%E5% goto :RECOMP_F4
if %F4%==%E6% goto :RECOMP_F4

:RECOMP_F5
call :VERIF
set /a F5=%RANDOM%%%10
if %F5%==0 goto :RECOMP_F5
if %F5%==%F1% goto :RECOMP_F5
if %F5%==%F2% goto :RECOMP_F5
if %F5%==%F3% goto :RECOMP_F5
if %F5%==%F4% goto :RECOMP_F5
if %F5%==%A5% goto :RECOMP_F5
if %F5%==%B5% goto :RECOMP_F5
if %F5%==%C5% goto :RECOMP_F5
if %F5%==%D5% goto :RECOMP_F5
if %F5%==%E5% goto :RECOMP_F5
if %F5%==%D4% goto :RECOMP_F5
if %F5%==%D6% goto :RECOMP_F5
if %F5%==%E4% goto :RECOMP_F5
if %F5%==%E6% goto :RECOMP_F5

:RECOMP_F6
call :VERIF
set /a F6=%RANDOM%%%10
if %F6%==0 goto :RECOMP_F6
if %F6%==%F1% goto :RECOMP_F6
if %F6%==%F2% goto :RECOMP_F6
if %F6%==%F3% goto :RECOMP_F6
if %F6%==%F4% goto :RECOMP_F6
if %F6%==%F5% goto :RECOMP_F6
if %F6%==%A6% goto :RECOMP_F6
if %F6%==%B6% goto :RECOMP_F6
if %F6%==%C6% goto :RECOMP_F6
if %F6%==%D6% goto :RECOMP_F6
if %F6%==%E6% goto :RECOMP_F6
if %F6%==%D4% goto :RECOMP_F6
if %F6%==%D5% goto :RECOMP_F6
if %F6%==%E4% goto :RECOMP_F6
if %F6%==%E5% goto :RECOMP_F6

:RECOMP_F7
call :VERIF
set /a F7=%RANDOM%%%10
if %F7%==0 goto :RECOMP_F7
if %F7%==%F1% goto :RECOMP_F7
if %F7%==%F2% goto :RECOMP_F7
if %F7%==%F3% goto :RECOMP_F7
if %F7%==%F4% goto :RECOMP_F7
if %F7%==%F5% goto :RECOMP_F7
if %F7%==%F6% goto :RECOMP_F7
if %F7%==%A7% goto :RECOMP_F7
if %F7%==%B7% goto :RECOMP_F7
if %F7%==%C7% goto :RECOMP_F7
if %F7%==%D7% goto :RECOMP_F7
if %F7%==%E7% goto :RECOMP_F7
if %F7%==%D8% goto :RECOMP_F7
if %F7%==%D9% goto :RECOMP_F7
if %F7%==%E8% goto :RECOMP_F7
if %F7%==%E9% goto :RECOMP_F7

:RECOMP_F8
call :VERIF
set /a F8=%RANDOM%%%10
if %F8%==0 goto :RECOMP_F8
if %F8%==%F1% goto :RECOMP_F8
if %F8%==%F2% goto :RECOMP_F8
if %F8%==%F3% goto :RECOMP_F8
if %F8%==%F4% goto :RECOMP_F8
if %F8%==%F5% goto :RECOMP_F8
if %F8%==%F6% goto :RECOMP_F8
if %F8%==%F7% goto :RECOMP_F8
if %F8%==%A8% goto :RECOMP_F8
if %F8%==%B8% goto :RECOMP_F8
if %F8%==%C8% goto :RECOMP_F8
if %F8%==%D8% goto :RECOMP_F8
if %F8%==%E8% goto :RECOMP_F8
if %F8%==%D7% goto :RECOMP_F8
if %F8%==%D9% goto :RECOMP_F8
if %F8%==%E7% goto :RECOMP_F8
if %F8%==%E9% goto :RECOMP_F8

:RECOMP_F9
call :VERIF
set /a F9=%RANDOM%%%10
if %F9%==0 goto :RECOMP_F9
if %F9%==%F1% goto :RECOMP_F9
if %F9%==%F2% goto :RECOMP_F9
if %F9%==%F3% goto :RECOMP_F9
if %F9%==%F4% goto :RECOMP_F9
if %F9%==%F5% goto :RECOMP_F9
if %F9%==%F6% goto :RECOMP_F9
if %F9%==%F7% goto :RECOMP_F9
if %F9%==%F8% goto :RECOMP_F9
if %F9%==%A9% goto :RECOMP_F9
if %F9%==%B9% goto :RECOMP_F9
if %F9%==%C9% goto :RECOMP_F9
if %F9%==%D9% goto :RECOMP_F9
if %F9%==%E9% goto :RECOMP_F9
if %F9%==%D7% goto :RECOMP_F9
if %F9%==%D8% goto :RECOMP_F9
if %F9%==%E7% goto :RECOMP_F9
if %F9%==%E8% goto :RECOMP_F9

::  ##################   LINE G  ###################

:RECOMP_G1
call :VERIF
set /a G1=%RANDOM%%%10
if %G1%==0 goto :RECOMP_G1
if %G1%==%A1% goto :RECOMP_G1
if %G1%==%B1% goto :RECOMP_G1
if %G1%==%C1% goto :RECOMP_G1
if %G1%==%D1% goto :RECOMP_G1
if %G1%==%E1% goto :RECOMP_G1
if %G1%==%F1% goto :RECOMP_G1

:RECOMP_G2
call :VERIF
set /a G2=%RANDOM%%%10
if %G2%==0 goto :RECOMP_G2
if %G2%==%G1% goto :RECOMP_G2
if %G2%==%A2% goto :RECOMP_G2
if %G2%==%B2% goto :RECOMP_G2
if %G2%==%C2% goto :RECOMP_G2
if %G2%==%D2% goto :RECOMP_G2
if %G2%==%E2% goto :RECOMP_G2
if %G2%==%F2% goto :RECOMP_G2

:RECOMP_G3
call :VERIF
set /a G3=%RANDOM%%%10
if %G3%==0 goto :RECOMP_G3
if %G3%==%G1% goto :RECOMP_G3
if %G3%==%G2% goto :RECOMP_G3
if %G3%==%A3% goto :RECOMP_G3
if %G3%==%B3% goto :RECOMP_G3
if %G3%==%C3% goto :RECOMP_G3
if %G3%==%D3% goto :RECOMP_G3
if %G3%==%E3% goto :RECOMP_G3
if %G3%==%F3% goto :RECOMP_G3

:RECOMP_G4
call :VERIF
set /a G4=%RANDOM%%%10
if %G4%==0 goto :RECOMP_G4
if %G4%==%G1% goto :RECOMP_G4
if %G4%==%G2% goto :RECOMP_G4
if %G4%==%G3% goto :RECOMP_G4
if %G4%==%A4% goto :RECOMP_G4
if %G4%==%B4% goto :RECOMP_G4
if %G4%==%C4% goto :RECOMP_G4
if %G4%==%D4% goto :RECOMP_G4
if %G4%==%E4% goto :RECOMP_G4
if %G4%==%F4% goto :RECOMP_G4

:RECOMP_G5
call :VERIF
set /a G5=%RANDOM%%%10
if %G5%==0 goto :RECOMP_G5
if %G5%==%G1% goto :RECOMP_G5
if %G5%==%G2% goto :RECOMP_G5
if %G5%==%G3% goto :RECOMP_G5
if %G5%==%G4% goto :RECOMP_G5
if %G5%==%A5% goto :RECOMP_G5
if %G5%==%B5% goto :RECOMP_G5
if %G5%==%C5% goto :RECOMP_G5
if %G5%==%D5% goto :RECOMP_G5
if %G5%==%E5% goto :RECOMP_G5
if %G5%==%F5% goto :RECOMP_G5

:RECOMP_G6
call :VERIF
set /a G6=%RANDOM%%%10
if %G6%==0 goto :RECOMP_G6
if %G6%==%G1% goto :RECOMP_G6
if %G6%==%G2% goto :RECOMP_G6
if %G6%==%G3% goto :RECOMP_G6
if %G6%==%G4% goto :RECOMP_G6
if %G6%==%G5% goto :RECOMP_G6
if %G6%==%A6% goto :RECOMP_G6
if %G6%==%B6% goto :RECOMP_G6
if %G6%==%C6% goto :RECOMP_G6
if %G6%==%D6% goto :RECOMP_G6
if %G6%==%E6% goto :RECOMP_G6
if %G6%==%F6% goto :RECOMP_G6

:RECOMP_G7
call :VERIF
set /a G7=%RANDOM%%%10
if %G7%==0 goto :RECOMP_G7
if %G7%==%G1% goto :RECOMP_G7
if %G7%==%G2% goto :RECOMP_G7
if %G7%==%G3% goto :RECOMP_G7
if %G7%==%G4% goto :RECOMP_G7
if %G7%==%G5% goto :RECOMP_G7
if %G7%==%G6% goto :RECOMP_G7
if %G7%==%A7% goto :RECOMP_G7
if %G7%==%B7% goto :RECOMP_G7
if %G7%==%C7% goto :RECOMP_G7
if %G7%==%D7% goto :RECOMP_G7
if %G7%==%E7% goto :RECOMP_G7
if %G7%==%F7% goto :RECOMP_G7

:RECOMP_G8
call :VERIF
set /a G8=%RANDOM%%%10
if %G8%==0 goto :RECOMP_G8
if %G8%==%G1% goto :RECOMP_G8
if %G8%==%G2% goto :RECOMP_G8
if %G8%==%G3% goto :RECOMP_G8
if %G8%==%G4% goto :RECOMP_G8
if %G8%==%G5% goto :RECOMP_G8
if %G8%==%G6% goto :RECOMP_G8
if %G8%==%G7% goto :RECOMP_G8
if %G8%==%A8% goto :RECOMP_G8
if %G8%==%B8% goto :RECOMP_G8
if %G8%==%C8% goto :RECOMP_G8
if %G8%==%D8% goto :RECOMP_G8
if %G8%==%E8% goto :RECOMP_G8
if %G8%==%F8% goto :RECOMP_G8

:RECOMP_G9
call :VERIF
set /a G9=%RANDOM%%%10
if %G9%==0 goto :RECOMP_G9
if %G9%==%G1% goto :RECOMP_G9
if %G9%==%G2% goto :RECOMP_G9
if %G9%==%G3% goto :RECOMP_G9
if %G9%==%G4% goto :RECOMP_G9
if %G9%==%G5% goto :RECOMP_G9
if %G9%==%G6% goto :RECOMP_G9
if %G9%==%G7% goto :RECOMP_G9
if %G9%==%G8% goto :RECOMP_G9
if %G9%==%A9% goto :RECOMP_G9
if %G9%==%B9% goto :RECOMP_G9
if %G9%==%C9% goto :RECOMP_G9
if %G9%==%D9% goto :RECOMP_G9
if %G9%==%E9% goto :RECOMP_G9
if %G9%==%F9% goto :RECOMP_G9

::  ##################   LINE H  ###################
:: Il reste encore à poser les conditions pour les lignes H et I ^^

:WALL
cls
echo         __         ___  ___           
echo        / _\/\ /\  /   \/___\/\ /\/\ /\
echo        \ \/ / \ \/ /\ //  // //_/ / \ \
echo        _\ \ \_/ / /_// \_// __ \\ \_/ /
echo        \__/\___/___,'\___/\/  \/ \___/  By STRYK
echo.
echo.
echo           ³ 1 ³ 2 ³ 3 ³ 4 ³ 5 ³ 6 ³ 7 ³ 8 ³ 9 ³
echo           ³   ³   ³   ³   ³   ³   ³   ³   ³   ³
echo        ÄÄÄÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo        A  º %A1% ³ %A2% ³ %A3% º %A4% ³ %A5% ³ %A6% º %A7% ³ %A8% ³ %A9% º
echo        ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺ
echo        B  º %B1% ³ %B2% ³ %B3% º %B4% ³ %B5% ³ %B6% º %B7% ³ %B8% ³ %B9% º
echo        ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺ
echo        C  º %C1% ³ %C2% ³ %C3% º %C4% ³ %C5% ³ %C6% º %C7% ³ %C8% ³ %C9% º
echo        ÄÄĺÍÍÍÍÍÍÍÍÍÍͺÍÍÍÍÍÍÍÍÍÍͺÍÍÍÍÍÍÍÍÍÍͺ
echo        D  º %D1% ³ %D2% ³ %D3% º %D4% ³ %D5% ³ %D6% º %D7% ³ %D8% ³ %D9% º
echo        ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺ
echo        E  º %E1% ³ %E2% ³ %E3% º %E4% ³ %E5% ³ %E6% º %E7% ³ %E8% ³ %E9% º
echo        ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺ
echo        F  º %F1% ³ %F2% ³ %F3% º %F4% ³ %F5% ³ %F6% º %F7% ³ %F8% ³ %F9% º
echo        ÄÄĺÍÍÍÍÍÍÍÍÍÍͺÍÍÍÍÍÍÍÍÍÍͺÍÍÍÍÍÍÍÍÍÍͺ
echo        G  º %G1% ³ %G2% ³ %G3% º %G4% ³ %G5% ³ %G6% º %G7% ³ %G8% ³ %G9% º
echo        ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺ
echo        H  º %H1% ³ %H2% ³ %H3% º %H4% ³ %H5% ³ %H6% º %H7% ³ %H8% ³ %H9% º
echo        ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺ
echo        I  º %I1% ³ %I2% ³ %I3% º %I4% ³ %I5% ³ %I6% º %I7% ³ %I8% ³ %I9% º
echo        ÄÄÄÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
echo.
echo.
echo.



pause

:VERIF
cls
set /a TIMER_H = %time:~0,2% * 3600
set /a TIMER_M = %time:~3,2% * 60
set TIMER_S=%time:~6,2%
set /a TIME_ACT = TIMER_H + TIMER_M + TIMER_S
set /a TIMER = TIME_ACT - TIME_START
if %TIMER% GEQ 2 (
    echo calcul en cours, patientez svp ...
    goto :REPLAY
   )



Voici une capture du batch, lorsque l'on place un "goto :WALL" juste avant la ligne E :





______________________________________________________


L'ignorance est un fléau qui engendre la haine et la mort
La connaissance est une arme qui surpasse toutes les autres
Partagez votre savoir, sinon il sera perdu à jamais
Message Publicité 
PublicitéSupprimer les publicités ?


Répondre en citant
Message Générateur de grille SUDOKU 
Gestion des Grilles aléatoirement abandonnée ....

Autre idée de gestion, à tester :

Code:

@echo off
title SUDOKU  ^|  By STRYK  ^|
mode con cols=54 lines=38 &color 1A

:: INIT VAR
set A1=Û
set A2=Û
set A3=Û
set A4=Û
set A5=Û
set A6=Û
set A7=Û
set A8=Û
set A9=Û
set B1=Û
set B2=Û
set B3=Û
set B4=Û
set B5=Û
set B6=Û
set B7=Û
set B8=Û
set B9=Û
set C1=Û
set C2=Û
set C3=Û
set C4=Û
set C5=Û
set C6=Û
set C7=Û
set C8=Û
set C9=Û
set D1=Û
set D2=Û
set D3=Û
set D4=Û
set D5=Û
set D6=Û
set D7=Û
set D8=Û
set D9=Û
set E1=Û
set E2=Û
set E3=Û
set E4=Û
set E5=Û
set E6=Û
set E7=Û
set E8=Û
set E9=Û
set F1=Û
set F2=Û
set F3=Û
set F4=Û
set F5=Û
set F6=Û
set F7=Û
set F8=Û
set F9=Û
set G1=Û
set G2=Û
set G3=Û
set G4=Û
set G5=Û
set G6=Û
set G7=Û
set G8=Û
set G9=Û
set H1=Û
set H2=Û
set H3=Û
set H4=Û
set H5=Û
set H6=Û
set H7=Û
set H8=Û
set H9=Û
set I1=Û
set I2=Û
set I3=Û
set I4=Û
set I5=Û
set I6=Û
set I7=Û
set I8=Û
set I9=Û

set /p GAME=Choix de la grille de jeu [ 1 ou 2 ] \\:
set GRILLE=GRILLE_%GAME%
set THIS_FILE=%0
for /f "tokens=2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26" %%A in ('type %THIS_FILE% ^| Find "%GRILLE%_SET"') do (
   set %%A
   set %%B
   set %%C
   set %%D
   set %%E
   set %%F
   set %%G
   set %%H
   set %%I
   set %%J
   set %%K
   set %%L
   set %%M
   set %%N
   set %%O
   set %%P
   set %%Q
   set %%R
   set %%S
   set %%T
   set %%U
   set %%V
   set %%W
   set %%X
   set %%Y
   )

:WALL
cls
echo         __         ___  ___           
echo        / _\/\ /\  /   \/___\/\ /\/\ /\
echo        \ \/ / \ \/ /\ //  // //_/ / \ \
echo        _\ \ \_/ / /_// \_// __ \\ \_/ /
echo        \__/\___/___,'\___/\/  \/ \___/  By STRYK
echo.
echo.
echo           ³ 1 ³ 2 ³ 3 ³ 4 ³ 5 ³ 6 ³ 7 ³ 8 ³ 9 ³
echo           ³   ³   ³   ³   ³   ³   ³   ³   ³   ³
echo        ÄÄÄÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo        A  º %A1% ³ %A2% ³ %A3% º %A4% ³ %A5% ³ %A6% º %A7% ³ %A8% ³ %A9% º
echo        ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺ
echo        B  º %B1% ³ %B2% ³ %B3% º %B4% ³ %B5% ³ %B6% º %B7% ³ %B8% ³ %B9% º
echo        ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺ
echo        C  º %C1% ³ %C2% ³ %C3% º %C4% ³ %C5% ³ %C6% º %C7% ³ %C8% ³ %C9% º
echo        ÄÄĺÍÍÍÍÍÍÍÍÍÍͺÍÍÍÍÍÍÍÍÍÍͺÍÍÍÍÍÍÍÍÍÍͺ
echo        D  º %D1% ³ %D2% ³ %D3% º %D4% ³ %D5% ³ %D6% º %D7% ³ %D8% ³ %D9% º
echo        ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺ
echo        E  º %E1% ³ %E2% ³ %E3% º %E4% ³ %E5% ³ %E6% º %E7% ³ %E8% ³ %E9% º
echo        ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺ
echo        F  º %F1% ³ %F2% ³ %F3% º %F4% ³ %F5% ³ %F6% º %F7% ³ %F8% ³ %F9% º
echo        ÄÄĺÍÍÍÍÍÍÍÍÍÍͺÍÍÍÍÍÍÍÍÍÍͺÍÍÍÍÍÍÍÍÍÍͺ
echo        G  º %G1% ³ %G2% ³ %G3% º %G4% ³ %G5% ³ %G6% º %G7% ³ %G8% ³ %G9% º
echo        ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺ
echo        H  º %H1% ³ %H2% ³ %H3% º %H4% ³ %H5% ³ %H6% º %H7% ³ %H8% ³ %H9% º
echo        ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺÄÄÄ+ÄÄÄ+ÄÄĺ
echo        I  º %I1% ³ %I2% ³ %I3% º %I4% ³ %I5% ³ %I6% º %I7% ³ %I8% ³ %I9% º
echo        ÄÄÄÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
echo.
echo.
echo.
set /p SELECT=Selectionnez une case \\:
set /p NEW_VAL=Entrez Votre proposition \\:
set %SELECT%=%NEW_VAL%

set AA=%A1%%A2%%A3%%A4%%A5%%A6%%A7%%A8%%A9%
set BB=%B1%%B2%%B3%%B4%%B5%%B6%%B7%%B8%%B9%
set CC=%C1%%C2%%C3%%C4%%C5%%C6%%C7%%C8%%C9%
set DD=%D1%%D2%%D3%%D4%%D5%%D6%%D7%%D8%%D9%
set EE=%E1%%E2%%E3%%E4%%E5%%E6%%E7%%E8%%E9%
set FF=%F1%%F2%%F3%%F4%%F5%%F6%%F7%%F8%%F9%
set GG=%G1%%G2%%G3%%G4%%G5%%G6%%G7%%G8%%G9%
set HH=%H1%%H2%%H3%%H4%%H5%%H6%%H7%%H8%%H9%
set II=%I1%%I2%%I3%%I4%%I5%%I6%%I7%%I8%%I9%

goto :VERIF_GRILLE_%GAME%

:FINISH_GRILLE_1
cls
echo Bravo, Grille 1 terminee
pause>nul
exit

:FINISH_GRILLE_2
cls
echo Bravo, Grille 2 terminee
pause>nul
exit

:: INDEX

:: GRILLE 1
GRILLE_1_SET A2=7 A4=1 A6=6 A7=9 B1=2 B5=9 B6=3 C3=8 C9=2 D3=6 D9=3 E2=1 E5=3 E8=9 F1=8 F7=5 G1=7 G7=4 H4=9 H5=1 H9=6 I3=4 I4=3 I6=7 I8=2
:VERIF_GRILLE_1
if %AA%%BB%%CC%%DD%%EE%%FF%%GG%%HH%%II%==375126984241893765698475132956781243417532698823649517739268451582914376164357829 goto :FINISH_GRILLE_1
goto :WALL

:: GRILLE 2
GRILLE_2_SET A1=5 A9=2 B1=8 B4=1 B5=3 B8=5 C5=4 C6=6 C7=8 D6=1 D7=7 D8=4 E5=8 F2=1 F3=3 F4=9 G3=6 G4=8 G5=1 H2=2 H5=5 H6=3 H9=7 I1=9 I9=1
:VERIF_GRILLE_2
if %AA%%BB%%CC%%DD%%EE%%FF%%GG%%HH%%II%==564798132897132456231546879689321745752684913413975268376819524128453697945267381 goto :FINISH_GRILLE_2
goto :WALL






______________________________________________________


L'ignorance est un fléau qui engendre la haine et la mort
La connaissance est une arme qui surpasse toutes les autres
Partagez votre savoir, sinon il sera perdu à jamais
Répondre en citant
Message Générateur de grille SUDOKU 
Code posté >> http://batch.xoo.it/t1147-SUDOKU.htm




______________________________________________________


L'ignorance est un fléau qui engendre la haine et la mort
La connaissance est une arme qui surpasse toutes les autres
Partagez votre savoir, sinon il sera perdu à jamais
Message Générateur de grille SUDOKU 


Montrer les messages depuis:
Répondre au sujet Page 1 sur 1
  



Index | créer un forum | Forum gratuit d’entraide | Annuaire des forums gratuits | Signaler une violation | Conditions générales d'utilisation
Copyright 2008 - 2016 // Batch