I started programming last monday, this was my first proyect. I did this between monday and tuesday, Its a Tic Tac Toe game that works by creating empy directories that tell the game whats going on (it deletes most of them by itself after a game is finished or with the restart "command") Its called TATETI because thats what Tic Tac Toe is called here in Argentina.
For it to run properly you should paste the code stuff on your word editor of choise and save it as tateti.bat IN C:\ (see the first lines of the code if you want to know why should you) AND, to get the best results out of the game you should make you first move 1 and the second 2, 3, 4 or 6 (those are the situations it knows best, still you can always get it to the point where it does nothing)
Any advice concerning how to do this sort of thing without having to write every possible situation down will be welcome.
CODE
@echo off
color 2e
title TATETI
cd c:\
MD TATETI
Copy Tateti.bat c:\TATETI
cd TATETI
CLS
REM This is what it does when you ask it to restart
if exist c:\TATETI\RESTART==if exist C:\TATETI\1 RMDIR/q C:\TATETI\1
if exist c:\TATETI\RESTART==if exist C:\TATETI\2 RMDIR/q C:\TATETI\2
if exist c:\TATETI\RESTART==if exist C:\TATETI\3 RMDIR/q C:\TATETI\3
if exist c:\TATETI\RESTART==if exist C:\TATETI\4 RMDIR/q C:\TATETI\4
if exist c:\TATETI\RESTART==if exist C:\TATETI\5 RMDIR/q C:\TATETI\5
if exist c:\TATETI\RESTART==if exist C:\TATETI\6 RMDIR/q C:\TATETI\6
if exist c:\TATETI\RESTART==if exist C:\TATETI\7 RMDIR/q C:\TATETI\7
if exist c:\TATETI\RESTART==if exist C:\TATETI\8 RMDIR/q C:\TATETI\8
if exist c:\TATETI\RESTART==if exist C:\TATETI\9 RMDIR/q C:\TATETI\9
if exist c:\TATETI\RESTART==if exist C:\TATETI\c1 RMDIR/q C:\TATETI\c1
if exist c:\TATETI\RESTART==if exist C:\TATETI\c2 RMDIR/q C:\TATETI\c2
if exist c:\TATETI\RESTART==if exist C:\TATETI\c3 RMDIR/q C:\TATETI\c3
if exist c:\TATETI\RESTART==if exist C:\TATETI\c4 RMDIR/q C:\TATETI\c4
if exist c:\TATETI\RESTART==if exist C:\TATETI\c5 RMDIR/q C:\TATETI\c5
if exist c:\TATETI\RESTART==if exist C:\TATETI\c6 RMDIR/q C:\TATETI\c6
if exist c:\TATETI\RESTART==if exist C:\TATETI\c7 RMDIR/q C:\TATETI\c7
if exist c:\TATETI\RESTART==if exist C:\TATETI\c8 RMDIR/q C:\TATETI\c8
if exist c:\TATETI\RESTART==if exist C:\TATETI\c9 RMDIR/q C:\TATETI\c9
if exist c:\TATETI\RESTART==if exist C:\TATETI\TEXTO RMDIR/q C:\TATETI\TEXTO
if exist c:\TATETI\RESTART==if exist c:\TATETI\TETI RMDIR/q c:\TATETI\TETI
if exist c:\TATETI\RESTART RMDIR/q c:\TATETI\RESTART
REM This is here to make sure you dont cheat
REM You can still cheat anyways
if exist c:\TATETI\c1==if exist c:\TATETI\1 md error
if exist c:\TATETI\c1==if exist c:\TATETI\1 rmdir/q c:\TATETI\1
if exist c:\TATETI\c2==if exist c:\TATETI\2 md error
if exist c:\TATETI\c2==if exist c:\TATETI\2 rmdir/q c:\TATETI\2
if exist c:\TATETI\c3==if exist c:\TATETI\3 md error
if exist c:\TATETI\c3==if exist c:\TATETI\3 rmdir/q c:\TATETI\3
if exist c:\TATETI\c4==if exist c:\TATETI\4 md error
if exist c:\TATETI\c4==if exist c:\TATETI\4 rmdir/q c:\TATETI\4
if exist c:\TATETI\c5==if exist c:\TATETI\5 md error
if exist c:\TATETI\c5==if exist c:\TATETI\5 rmdir/q c:\TATETI\5
if exist c:\TATETI\c6==if exist c:\TATETI\6 md error
if exist c:\TATETI\c6==if exist c:\TATETI\6 rmdir/q c:\TATETI\6
if exist c:\TATETI\c7==if exist c:\TATETI\7 md error
if exist c:\TATETI\c7==if exist c:\TATETI\7 rmdir/q c:\TATETI\7
if exist c:\TATETI\c8==if exist c:\TATETI\8 md error
if exist c:\TATETI\c8==if exist c:\TATETI\8 rmdir/q c:\TATETI\8
if exist c:\TATETI\c9==if exist c:\TATETI\9 md error
if exist c:\TATETI\c9==if exist c:\TATETI\9 rmdir/q c:\TATETI\9
REM This is the "brain" of the thing
REM It tells it what to do in each known situation
REM I still have to type a lot things in here
if exist c:\TATETI\1==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if not exist c:\TATETI\C5 md c5
if exist c:\TATETI\2==if not exist c:\TATETI\1==if not exist c:\TATETI\3==if not exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if not exist c:\TATETI\C5 md c5
if exist c:\TATETI\3==if not exist c:\TATETI\2==if not exist c:\TATETI\1==if not exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if not exist c:\TATETI\C5 md c5
if exist c:\TATETI\4==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\1==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if not exist c:\TATETI\C5 md c5
if exist c:\TATETI\5==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\4==if not exist c:\TATETI\1==if not exist c:\TATETI\6==if not exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if not exist c:\TATETI\C1 md c1
if exist c:\TATETI\6==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\1==if not exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if not exist c:\TATETI\C5 md c5
if exist c:\TATETI\7==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\1==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if not exist c:\TATETI\C5 md c5
if exist c:\TATETI\8==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\7==if not exist c:\TATETI\1==if not exist c:\TATETI\9==if not exist c:\TATETI\C5 md c5
if exist c:\TATETI\9==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\7==if not exist c:\TATETI\1==if not exist c:\TATETI\1==if not exist c:\TATETI\C5 md c5
if exist c:\TATETI\1==if exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\C5==if not exist c:\TATETI\C3 md c3
if exist c:\TATETI\1==if not exist c:\TATETI\2==if exist c:\TATETI\3==if not exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\C5==if not exist c:\TATETI\C2 md c2
if exist c:\TATETI\1==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\c5==if not exist c:\TATETI\C7 md c7
if exist c:\TATETI\1==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\4==if not exist c:\TATETI\5==if exist c:\TATETI\6==if not exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\C5==if not exist c:\TATETI\C8 md c8
if exist c:\TATETI\1==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\C5==if not exist c:\TATETI\C4 md c4
if exist c:\TATETI\1==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\7==if exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\C5==if not exist c:\TATETI\C3 md c3
if exist c:\TATETI\1==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\7==if not exist c:\TATETI\8==if exist c:\TATETI\9==if exist c:\TATETI\C5==if not exist c:\TATETI\C8 md c8
if exist c:\TATETI\1==if exist c:\TATETI\2==if not exist c:\TATETI\3==if exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\C5==if exist c:\TATETI\C3==if not exist c:\TATETI\C7 md c7
if exist c:\TATETI\1==if exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\4==if not exist c:\TATETI\5==if exist c:\TATETI\6==if not exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\C5==if exist c:\TATETI\C3==if not exist c:\TATETI\C7 md c7
if exist c:\TATETI\1==if exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\C5==if exist c:\TATETI\C3==if not exist c:\TATETI\C4 md c4
if exist c:\TATETI\1==if exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\7==if exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\C5==if exist c:\TATETI\C3==if not exist c:\TATETI\C7 md c7
if exist c:\TATETI\1==if exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\7==if not exist c:\TATETI\8==if exist c:\TATETI\9==if exist c:\TATETI\C5==if exist c:\TATETI\C3==if not exist c:\TATETI\C7 md c7
if exist c:\TATETI\1==if not exist c:\TATETI\2==if exist c:\TATETI\3==if exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\C5==if exist c:\TATETI\C2==if not exist c:\TATETI\C8 md c8
if exist c:\TATETI\1==if not exist c:\TATETI\2==if exist c:\TATETI\3==if not exist c:\TATETI\4==if not exist c:\TATETI\5==if exist c:\TATETI\6==if not exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\C5==if exist c:\TATETI\C2==if not exist c:\TATETI\C8 md c8
if exist c:\TATETI\1==if not exist c:\TATETI\2==if exist c:\TATETI\3==if not exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\C5==if exist c:\TATETI\C2==if not exist c:\TATETI\C8 md c8
if exist c:\TATETI\1==if not exist c:\TATETI\2==if exist c:\TATETI\3==if not exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\7==if exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\C5==if exist c:\TATETI\C2==if not exist c:\TATETI\C6 md c6
if exist c:\TATETI\1==if not exist c:\TATETI\2==if exist c:\TATETI\3==if not exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\7==if not exist c:\TATETI\8==if exist c:\TATETI\9==if exist c:\TATETI\C5==if exist c:\TATETI\C2==if not exist c:\TATETI\C8 md c8
if exist c:\TATETI\1==if not exist c:\TATETI\2==if exist c:\TATETI\3==if exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\C5==if exist c:\tateti\c7==if not exist c:\TATETI\C2 md c2
if exist c:\TATETI\1==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if exist c:\TATETI\4==if not exist c:\TATETI\5==if exist c:\TATETI\6==if not exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\C5==if exist c:\TATETI\C7==if not exist c:\TATETI\C3 md c3
if exist c:\TATETI\1==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\7==if exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\C5==if exist c:\TATETI\C7==if not exist c:\TATETI\C3 md c3
if exist c:\TATETI\1==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\7==if not exist c:\TATETI\8==if exist c:\TATETI\9==if exist c:\TATETI\C5==if exist c:\TATETI\C7==if not exist c:\TATETI\C3 md c3
if exist c:\TATETI\1==if exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\4==if not exist c:\TATETI\5==if exist c:\TATETI\6==if not exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\C5==if exist c:\tateti\c7==if not exist c:\TATETI\C3 md c3
if exist c:\TATETI\1==if not exist c:\TATETI\2==if exist c:\TATETI\3==if not exist c:\TATETI\4==if not exist c:\TATETI\5==if exist c:\TATETI\6==if not exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\C5==if exist c:\tateti\c7==if not exist c:\TATETI\C9 md c9
if exist c:\TATETI\1==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if exist c:\TATETI\4==if not exist c:\TATETI\5==if exist c:\TATETI\6==if not exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\C5==if exist c:\tateti\c7==if not exist c:\TATETI\C3 md c3
if exist c:\TATETI\1==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\4==if not exist c:\TATETI\5==if exist c:\TATETI\6==if not exist c:\TATETI\7==if exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\C5==if exist c:\tateti\c7==if not exist c:\TATETI\C3 md c3
if exist c:\TATETI\1==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\4==if not exist c:\TATETI\5==if exist c:\TATETI\6==if not exist c:\TATETI\7==if exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\C5==if exist c:\tateti\c3==if not exist c:\TATETI\C7 md c7
if exist c:\TATETI\1==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\4==if not exist c:\TATETI\5==if exist c:\TATETI\6==if not exist c:\TATETI\7==if not exist c:\TATETI\8==if exist c:\TATETI\9==if exist c:\TATETI\C5==if exist c:\tateti\c8==if not exist c:\TATETI\C2 md c2
REM If this happends the game ends
if exist c:\TATETI\c1==if exist c:\TATETI\c2==if exist c:\TATETI\c3 MD TETI1
if exist c:\TATETI\C1==if exist c:\TATETI\c5==if exist c:\TATETI\c9 MD TETI1
if exist c:\TATETI\C1==if exist c:\TATETI\c4==if exist c:\TATETI\c7 MD TETI1
if exist c:\TATETI\C2==if exist c:\TATETI\c5==if exist c:\TATETI\c8 MD TETI1
if exist c:\TATETI\C3==if exist c:\TATETI\c5==if exist c:\TATETI\c7 MD TETI1
if exist c:\TATETI\C3==if exist c:\TATETI\c6==if exist c:\TATETI\c9 MD TETI1
if exist c:\TATETI\C4==if exist c:\TATETI\c5==if exist c:\TATETI\c6 MD TETI1
if exist c:\TATETI\C7==if exist c:\TATETI\c8==if exist c:\TATETI\c9 MD TETI1
if exist c:\TATETI\1==if exist c:\TATETI\2==if exist c:\TATETI\3 MD TETI2
if exist c:\TATETI\1==if exist c:\TATETI\5==if exist c:\TATETI\9 MD TETI2
if exist c:\TATETI\1==if exist c:\TATETI\4==if exist c:\TATETI\7 MD TETI2
if exist c:\TATETI\2==if exist c:\TATETI\5==if exist c:\TATETI\8 MD TETI2
if exist c:\TATETI\3==if exist c:\TATETI\5==if exist c:\TATETI\7 MD TETI2
if exist c:\TATETI\3==if exist c:\TATETI\6==if exist c:\TATETI\9 MD TETI2
if exist c:\TATETI\4==if exist c:\TATETI\5==if exist c:\TATETI\6 MD TETI2
if exist c:\TATETI\7==if exist c:\TATETI\8==if exist c:\TATETI\9 MD TETI2
REM This is the display
if not exist c:\TATETI\1==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\c1==if not exist c:\TATETI\c2==if not exist c:\TATETI\c3 echo [ 1 ] [ 2 ] [ 3 ]
if not exist c:\TATETI\1==if exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\c1==if not exist c:\TATETI\c2==if not exist c:\TATETI\c3 echo [ 1 ] [ X ] [ 3 ]
if not exist c:\TATETI\1==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\c1==if exist c:\TATETI\c2==if not exist c:\TATETI\c3 echo [ 1 ] [ O ] [ 3 ]
if not exist c:\TATETI\1==if exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\c1==if not exist c:\TATETI\c2==if exist c:\TATETI\c3 echo [ 1 ] [ X ] [ O ]
if not exist c:\TATETI\1==if not exist c:\TATETI\2==if exist c:\TATETI\3==if not exist c:\TATETI\c1==if exist c:\TATETI\c2==if not exist c:\TATETI\c3 echo [ 1 ] [ O ] [ X ]
if not exist c:\TATETI\1==if exist c:\TATETI\2==if exist c:\TATETI\3==if not exist c:\TATETI\c1==if not exist c:\TATETI\c2==if not exist c:\TATETI\c3 echo [ 1 ] [ X ] [ X ]
if not exist c:\TATETI\1==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\c1==if exist c:\TATETI\c2==if exist c:\TATETI\c3 echo [ 1 ] [ O ] [ O ]
if not exist c:\TATETI\1==if not exist c:\TATETI\2==if exist c:\TATETI\3==if not exist c:\TATETI\c1==if not exist c:\TATETI\c2==if not exist c:\TATETI\c3 echo [ 1 ] [ 2 ] [ X ]
if not exist c:\TATETI\1==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\c1==if not exist c:\TATETI\c2==if exist c:\TATETI\c3 echo [ 1 ] [ 2 ] [ O ]
if exist c:\TATETI\1==if exist c:\TATETI\2==if exist c:\TATETI\3==if not exist c:\TATETI\c1==if not exist c:\TATETI\c2==if not exist c:\TATETI\c3 echo [ X ] [ X ] [ X ]
if exist c:\TATETI\1==if not exist c:\TATETI\2==if exist c:\TATETI\3==if not exist c:\TATETI\c1==if not exist c:\TATETI\c2==if not exist c:\TATETI\c3 echo [ X ] [ 2 ] [ X ]
if exist c:\TATETI\1==if not exist c:\TATETI\2==if exist c:\TATETI\3==if not exist c:\TATETI\c1==if exist c:\TATETI\c2==if not exist c:\TATETI\c3 echo [ X ] [ O ] [ X ]
if exist c:\TATETI\1==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\c1==if not exist c:\TATETI\c2==if exist c:\TATETI\c3 echo [ X ] [ 2 ] [ O ]
if exist c:\TATETI\1==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\c1==if exist c:\TATETI\c2==if not exist c:\TATETI\c3 echo [ X ] [ O ] [ 3 ]
if exist c:\TATETI\1==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\c1==if not exist c:\TATETI\c2==if not exist c:\TATETI\c3 echo [ X ] [ 2 ] [ 3 ]
if exist c:\TATETI\1==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\c1==if exist c:\TATETI\c2==if exist c:\TATETI\c3 echo [ X ] [ O ] [ O ]
if exist c:\TATETI\1==if exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\c1==if not exist c:\TATETI\c2==if not exist c:\TATETI\c3 echo [ X ] [ X ] [ 3 ]
if exist c:\TATETI\1==if exist c:\TATETI\2==if not exist c:\TATETI\3==if not exist c:\TATETI\c1==if not exist c:\TATETI\c2==if exist c:\TATETI\c3 echo [ X ] [ X ] [ O ]
if not exist c:\TATETI\1==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if exist c:\TATETI\c1==if exist c:\TATETI\c2==if exist c:\TATETI\c3 echo [ O ] [ O ] [ O ]
if not exist c:\TATETI\1==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if exist c:\TATETI\c1==if not exist c:\TATETI\c2==if exist c:\TATETI\c3 echo [ O ] [ 2 ] [ O ]
if not exist c:\TATETI\1==if exist c:\TATETI\2==if not exist c:\TATETI\3==if exist c:\TATETI\c1==if not exist c:\TATETI\c2==if exist c:\TATETI\c3 echo [ O ] [ X ] [ O ]
if not exist c:\TATETI\1==if not exist c:\TATETI\2==if exist c:\TATETI\3==if exist c:\TATETI\c1==if not exist c:\TATETI\c2==if not exist c:\TATETI\c3 echo [ O ] [ 2 ] [ X ]
if not exist c:\TATETI\1==if exist c:\TATETI\2==if not exist c:\TATETI\3==if exist c:\TATETI\c1==if not exist c:\TATETI\c2==if not exist c:\TATETI\c3 echo [ O ] [ X ] [ 3 ]
if not exist c:\TATETI\1==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if exist c:\TATETI\c1==if not exist c:\TATETI\c2==if not exist c:\TATETI\c3 echo [ O ] [ 2 ] [ 3 ]
if not exist c:\TATETI\1==if exist c:\TATETI\2==if exist c:\TATETI\3==if exist c:\TATETI\c1==if not exist c:\TATETI\c2==if not exist c:\TATETI\c3 echo [ O ] [ X ] [ X ]
if not exist c:\TATETI\1==if not exist c:\TATETI\2==if not exist c:\TATETI\3==if exist c:\TATETI\c1==if exist c:\TATETI\c2==if not exist c:\TATETI\c3 echo [ O ] [ O ] [ 3 ]
if not exist c:\TATETI\1==if not exist c:\TATETI\2==if exist c:\TATETI\3==if exist c:\TATETI\c1==if exist c:\TATETI\c2==if not exist c:\TATETI\c3 echo [ O ] [ O ] [ X ]
if not exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\c4==if not exist c:\TATETI\c5==if not exist c:\TATETI\c6 echo [ 4 ] [ 5 ] [ 6 ]
if not exist c:\TATETI\4==if exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\c4==if not exist c:\TATETI\c5==if not exist c:\TATETI\c6 echo [ 4 ] [ X ] [ 6 ]
if not exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\c4==if exist c:\TATETI\c5==if not exist c:\TATETI\c6 echo [ 4 ] [ O ] [ 6 ]
if not exist c:\TATETI\4==if exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\c4==if not exist c:\TATETI\c5==if exist c:\TATETI\c6 echo [ 4 ] [ X ] [ O ]
if not exist c:\TATETI\4==if not exist c:\TATETI\5==if exist c:\TATETI\6==if not exist c:\TATETI\c4==if exist c:\TATETI\c5==if not exist c:\TATETI\c6 echo [ 4 ] [ O ] [ X ]
if not exist c:\TATETI\4==if exist c:\TATETI\5==if exist c:\TATETI\6==if not exist c:\TATETI\c4==if not exist c:\TATETI\c5==if not exist c:\TATETI\c6 echo [ 4 ] [ X ] [ X ]
if not exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\c4==if exist c:\TATETI\c5==if exist c:\TATETI\c6 echo [ 4 ] [ O ] [ O ]
if not exist c:\TATETI\4==if not exist c:\TATETI\5==if exist c:\TATETI\6==if not exist c:\TATETI\c4==if not exist c:\TATETI\c5==if not exist c:\TATETI\c6 echo [ 4 ] [ 5 ] [ X ]
if not exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\c4==if not exist c:\TATETI\c5==if exist c:\TATETI\c6 echo [ 4 ] [ 5 ] [ O ]
if exist c:\TATETI\4==if exist c:\TATETI\5==if exist c:\TATETI\6==if not exist c:\TATETI\c4==if not exist c:\TATETI\c5==if not exist c:\TATETI\c6 echo [ X ] [ X ] [ X ]
if exist c:\TATETI\4==if not exist c:\TATETI\5==if exist c:\TATETI\6==if not exist c:\TATETI\c4==if not exist c:\TATETI\c5==if not exist c:\TATETI\c6 echo [ X ] [ 5 ] [ X ]
if exist c:\TATETI\4==if not exist c:\TATETI\5==if exist c:\TATETI\6==if not exist c:\TATETI\c4==if exist c:\TATETI\c5==if not exist c:\TATETI\c6 echo [ X ] [ O ] [ X ]
if exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\c4==if not exist c:\TATETI\c5==if exist c:\TATETI\c6 echo [ X ] [ 5 ] [ O ]
if exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\c4==if exist c:\TATETI\c5==if not exist c:\TATETI\c6 echo [ X ] [ O ] [ 6 ]
if exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\c4==if not exist c:\TATETI\c5==if not exist c:\TATETI\c6 echo [ X ] [ 5 ] [ 6 ]
if exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\c4==if exist c:\TATETI\c5==if exist c:\TATETI\c6 echo [ X ] [ O ] [ O ]
if exist c:\TATETI\4==if exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\c4==if not exist c:\TATETI\c5==if not exist c:\TATETI\c6 echo [ X ] [ X ] [ 6 ]
if exist c:\TATETI\4==if exist c:\TATETI\5==if not exist c:\TATETI\6==if not exist c:\TATETI\c4==if not exist c:\TATETI\c5==if exist c:\TATETI\c6 echo [ X ] [ X ] [ O ]
if not exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if exist c:\TATETI\c4==if exist c:\TATETI\c5==if exist c:\TATETI\c6 echo [ O ] [ O ] [ O ]
if not exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if exist c:\TATETI\c4==if not exist c:\TATETI\c5==if exist c:\TATETI\c6 echo [ O ] [ 5 ] [ O ]
if not exist c:\TATETI\4==if exist c:\TATETI\5==if not exist c:\TATETI\6==if exist c:\TATETI\c4==if not exist c:\TATETI\c5==if exist c:\TATETI\c6 echo [ O ] [ X ] [ O ]
if not exist c:\TATETI\4==if not exist c:\TATETI\5==if exist c:\TATETI\6==if exist c:\TATETI\c4==if not exist c:\TATETI\c5==if not exist c:\TATETI\c6 echo [ O ] [ 5 ] [ X ]
if not exist c:\TATETI\4==if exist c:\TATETI\5==if not exist c:\TATETI\6==if exist c:\TATETI\c4==if not exist c:\TATETI\c5==if not exist c:\TATETI\c6 echo [ O ] [ X ] [ 6 ]
if not exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if exist c:\TATETI\c4==if not exist c:\TATETI\c5==if not exist c:\TATETI\c6 echo [ O ] [ 5 ] [ 6 ]
if not exist c:\TATETI\4==if exist c:\TATETI\5==if exist c:\TATETI\6==if exist c:\TATETI\c4==if not exist c:\TATETI\c5==if not exist c:\TATETI\c6 echo [ O ] [ X ] [ X ]
if not exist c:\TATETI\4==if not exist c:\TATETI\5==if not exist c:\TATETI\6==if exist c:\TATETI\c4==if exist c:\TATETI\c5==if not exist c:\TATETI\c6 echo [ O ] [ O ] [ 6 ]
if not exist c:\TATETI\4==if not exist c:\TATETI\5==if exist c:\TATETI\6==if exist c:\TATETI\c4==if exist c:\TATETI\c5==if not exist c:\TATETI\c6 echo [ O ] [ O ] [ X ]
if not exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if not exist c:\TATETI\c7==if not exist c:\TATETI\c8==if not exist c:\TATETI\c9 echo [ 7 ] [ 8 ] [ 9 ]
if not exist c:\TATETI\7==if exist c:\TATETI\8==if not exist c:\TATETI\9==if not exist c:\TATETI\c7==if not exist c:\TATETI\c8==if not exist c:\TATETI\c9 echo [ 7 ] [ X ] [ 9 ]
if not exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if not exist c:\TATETI\c7==if exist c:\TATETI\c8==if not exist c:\TATETI\c9 echo [ 7 ] [ O ] [ 9 ]
if not exist c:\TATETI\7==if exist c:\TATETI\8==if not exist c:\TATETI\9==if not exist c:\TATETI\c7==if not exist c:\TATETI\c8==if exist c:\TATETI\c9 echo [ 7 ] [ X ] [ O ]
if not exist c:\TATETI\7==if not exist c:\TATETI\8==if exist c:\TATETI\9==if not exist c:\TATETI\c7==if exist c:\TATETI\c8==if not exist c:\TATETI\c9 echo [ 7 ] [ O ] [ X ]
if not exist c:\TATETI\7==if exist c:\TATETI\8==if exist c:\TATETI\9==if not exist c:\TATETI\c7==if not exist c:\TATETI\c8==if not exist c:\TATETI\c9 echo [ 7 ] [ X ] [ X ]
if not exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if not exist c:\TATETI\c7==if exist c:\TATETI\c8==if exist c:\TATETI\c9 echo [ 7 ] [ O ] [ O ]
if not exist c:\TATETI\7==if not exist c:\TATETI\8==if exist c:\TATETI\9==if not exist c:\TATETI\c7==if not exist c:\TATETI\c8==if not exist c:\TATETI\c9 echo [ 7 ] [ 8 ] [ X ]
if not exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if not exist c:\TATETI\c7==if not exist c:\TATETI\c8==if exist c:\TATETI\c9 echo [ 7 ] [ 8 ] [ O ]
if exist c:\TATETI\7==if exist c:\TATETI\8==if exist c:\TATETI\9==if not exist c:\TATETI\c7==if not exist c:\TATETI\c8==if not exist c:\TATETI\c9 echo [ X ] [ X ] [ X ]
if exist c:\TATETI\7==if not exist c:\TATETI\8==if exist c:\TATETI\9==if not exist c:\TATETI\c7==if not exist c:\TATETI\c8==if not exist c:\TATETI\c9 echo [ X ] [ 8 ] [ X ]
if exist c:\TATETI\7==if not exist c:\TATETI\8==if exist c:\TATETI\9==if not exist c:\TATETI\c7==if exist c:\TATETI\c8==if not exist c:\TATETI\c9 echo [ X ] [ O ] [ X ]
if exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if not exist c:\TATETI\c7==if not exist c:\TATETI\c8==if exist c:\TATETI\c9 echo [ X ] [ 5 ] [ O ]
if exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if not exist c:\TATETI\c7==if exist c:\TATETI\c8==if not exist c:\TATETI\c9 echo [ X ] [ O ] [ 9 ]
if exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if not exist c:\TATETI\c7==if not exist c:\TATETI\c8==if not exist c:\TATETI\c9 echo [ X ] [ 8 ] [ 9 ]
if exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if not exist c:\TATETI\c7==if exist c:\TATETI\c8==if exist c:\TATETI\c9 echo [ X ] [ O ] [ O ]
if exist c:\TATETI\7==if exist c:\TATETI\8==if not exist c:\TATETI\9==if not exist c:\TATETI\c7==if not exist c:\TATETI\c8==if not exist c:\TATETI\c9 echo [ X ] [ X ] [ 9 ]
if exist c:\TATETI\7==if exist c:\TATETI\8==if not exist c:\TATETI\9==if not exist c:\TATETI\c7==if not exist c:\TATETI\c8==if exist c:\TATETI\c9 echo [ X ] [ X ] [ O ]
if not exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\c7==if exist c:\TATETI\c8==if exist c:\TATETI\c9 echo [ O ] [ O ] [ O ]
if not exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\c7==if not exist c:\TATETI\c8==if exist c:\TATETI\c9 echo [ O ] [ 8 ] [ O ]
if not exist c:\TATETI\7==if exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\c7==if not exist c:\TATETI\c8==if exist c:\TATETI\c9 echo [ O ] [ X ] [ O ]
if not exist c:\TATETI\7==if not exist c:\TATETI\8==if exist c:\TATETI\9==if exist c:\TATETI\c7==if not exist c:\TATETI\c8==if not exist c:\TATETI\c9 echo [ O ] [ 8 ] [ X ]
if not exist c:\TATETI\7==if exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\c7==if not exist c:\TATETI\c8==if not exist c:\TATETI\c9 echo [ O ] [ X ] [ 9 ]
if not exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\c7==if not exist c:\TATETI\c8==if not exist c:\TATETI\c9 echo [ O ] [ 8 ] [ 9 ]
if not exist c:\TATETI\7==if exist c:\TATETI\8==if exist c:\TATETI\9==if exist c:\TATETI\c7==if not exist c:\TATETI\c8==if not exist c:\TATETI\c9 echo [ O ] [ X ] [ X ]
if not exist c:\TATETI\7==if not exist c:\TATETI\8==if not exist c:\TATETI\9==if exist c:\TATETI\c7==if exist c:\TATETI\c8==if not exist c:\TATETI\c9 echo [ O ] [ O ] [ 9 ]
if not exist c:\TATETI\7==if not exist c:\TATETI\8==if exist c:\TATETI\9==if exist c:\TATETI\c7==if exist c:\TATETI\c8==if not exist c:\TATETI\c9 echo [ O ] [ O ] [ X ]
if exist c:\TATETI\error echo Entrada invalida
if exist c:\TATETI\error rmdir/q error
If not exist c:\TATETI\TEXTO echo.
If not exist c:\TATETI\TEXTO echo MD 1 dibuja una X en 1
If not exist c:\TATETI\TEXTO echo MD 2 en 2
If not exist c:\TATETI\TEXTO echo etc
If not exist c:\TATETI\TEXTO md TEXTO
if not exist TETI1 echo MD 1 creates X on 1
if not exist TETI1 echo MD 2 creates X on 2
if not exist TETI1 echo and so on...
if not exist TETI1 echo MD RESTART Restarts game
if not exist TETI1 echo TATETI Redraws screen
if exist c:\TATETI\TETI1 echo O wins :)
if exist c:\TATETI\TETI1==if exist C:\TATETI\1 RMDIR/q C:\TATETI\1
if exist c:\TATETI\TETI1==if exist C:\TATETI\2 RMDIR/q C:\TATETI\2
if exist c:\TATETI\TETI1==if exist C:\TATETI\3 RMDIR/q C:\TATETI\3
if exist c:\TATETI\TETI1==if exist C:\TATETI\4 RMDIR/q C:\TATETI\4
if exist c:\TATETI\TETI1==if exist C:\TATETI\5 RMDIR/q C:\TATETI\5
if exist c:\TATETI\TETI1==if exist C:\TATETI\6 RMDIR/q C:\TATETI\6
if exist c:\TATETI\TETI1==if exist C:\TATETI\7 RMDIR/q C:\TATETI\7
if exist c:\TATETI\TETI1==if exist C:\TATETI\8 RMDIR/q C:\TATETI\8
if exist c:\TATETI\TETI1==if exist C:\TATETI\9 RMDIR/q C:\TATETI\9
if exist c:\TATETI\TETI1==if exist C:\TATETI\c1 RMDIR/q C:\TATETI\c1
if exist c:\TATETI\TETI1==if exist C:\TATETI\c2 RMDIR/q C:\TATETI\c2
if exist c:\TATETI\TETI1==if exist C:\TATETI\c3 RMDIR/q C:\TATETI\c3
if exist c:\TATETI\TETI1==if exist C:\TATETI\c4 RMDIR/q C:\TATETI\c4
if exist c:\TATETI\TETI1==if exist C:\TATETI\c5 RMDIR/q C:\TATETI\c5
if exist c:\TATETI\TETI1==if exist C:\TATETI\c6 RMDIR/q C:\TATETI\c6
if exist c:\TATETI\TETI1==if exist C:\TATETI\c7 RMDIR/q C:\TATETI\c7
if exist c:\TATETI\TETI1==if exist C:\TATETI\c8 RMDIR/q C:\TATETI\c8
if exist c:\TATETI\TETI1==if exist C:\TATETI\c9 RMDIR/q C:\TATETI\c9
if exist c:\TATETI\TETI1 RMDIR/q C:\TATETI\TEXTO
if exist c:\TATETI\TETI1 RMDIR/q c:\TATETI\TETI1
if exist c:\TATETI\TETI2 echo X wins
if exist c:\TATETI\TETI2==if exist C:\TATETI\1 RMDIR/q C:\TATETI\1
if exist c:\TATETI\TETI2==if exist C:\TATETI\2 RMDIR/q C:\TATETI\2
if exist c:\TATETI\TETI2==if exist C:\TATETI\3 RMDIR/q C:\TATETI\3
if exist c:\TATETI\TETI2==if exist C:\TATETI\4 RMDIR/q C:\TATETI\4
if exist c:\TATETI\TETI2==if exist C:\TATETI\5 RMDIR/q C:\TATETI\5
if exist c:\TATETI\TETI2==if exist C:\TATETI\6 RMDIR/q C:\TATETI\6
if exist c:\TATETI\TETI2==if exist C:\TATETI\7 RMDIR/q C:\TATETI\7
if exist c:\TATETI\TETI2==if exist C:\TATETI\8 RMDIR/q C:\TATETI\8
if exist c:\TATETI\TETI2==if exist C:\TATETI\9 RMDIR/q C:\TATETI\9
if exist c:\TATETI\TETI2==if exist C:\TATETI\c1 RMDIR/q C:\TATETI\c1
if exist c:\TATETI\TETI2==if exist C:\TATETI\c2 RMDIR/q C:\TATETI\c2
if exist c:\TATETI\TETI2==if exist C:\TATETI\c3 RMDIR/q C:\TATETI\c3
if exist c:\TATETI\TETI2==if exist C:\TATETI\c4 RMDIR/q C:\TATETI\c4
if exist c:\TATETI\TETI2==if exist C:\TATETI\c5 RMDIR/q C:\TATETI\c5
if exist c:\TATETI\TETI2==if exist C:\TATETI\c6 RMDIR/q C:\TATETI\c6
if exist c:\TATETI\TETI2==if exist C:\TATETI\c7 RMDIR/q C:\TATETI\c7
if exist c:\TATETI\TETI2==if exist C:\TATETI\c8 RMDIR/q C:\TATETI\c8
if exist c:\TATETI\TETI2==if exist C:\TATETI\c9 RMDIR/q C:\TATETI\c9
if exist c:\TATETI\TETI2 RMDIR/q C:\TATETI\TEXTO
if exist c:\TATETI\TETI2 RMDIR/q c:\TATETI\TETI2
CMD
Mode Edit: Added code tags for you
This post has been edited by gabehabe: 4 Jul, 2008 - 03:40 AM