Here's the code, can anyone make it even simpler and smaller? ```cmd @ECHO OFF&SETLOCAL ENABLEDELAYE

Here's the code, can anyone make it even simpler and smaller?
@ECHO OFF&SETLOCAL ENABLEDELAYEDEXPANSION
FOR /L %%N in (1, 1, 9) DO (SET "ti[%%N]=-")
FOR /L %%# in () DO (
    FOR %%Q in (X O) DO (
        ECHO:%%Q Turn&ECHO.&FOR %%N in ("!ti[1]! !ti[2]! !ti[3]!" "!ti[4]! !ti[5]! !ti[6]!" "!ti[7]! !ti[8]! !ti[9]!") DO ECHO:%%~N
        CHOICE /C 123456789
        FOR %%G in (!errorlevel!) DO IF "!ti[%%G]!" == "-" (
            SET "ti[!errorlevel!]=%%Q"
            FOR %%D in ("!ti[1]!!ti[2]!!ti[3]!" "!ti[4]!!ti[5]!!ti[6]!" "!ti[7]!!ti[8]!!ti[9]!" "!ti[1]!!ti[4]!!ti[7]!" "!ti[2]!!ti[5]!!ti[8]!" "!ti[3]!!ti[6]!!ti[9]!" "!ti[1]!!ti[5]!!ti[9]!" "!ti[3]!!ti[5]!!ti[7]!") DO (
                IF %%D=="%%Q%%Q%%Q" ECHO %%Q Won^^!&PAUSE&EXIT
            )
        )
    )
)
Was this page helpful?