6 Replies - 1501 Views - Last Post: 04 July 2008 - 11:49 PM Rate Topic: -----

#1 Nahuo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 24-June 08

Yet another batch game

Posted 30 June 2008 - 12:55 AM

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.

@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: 04 July 2008 - 04:40 AM


Is This A Good Question/Topic? 0
  • +

Replies To: Yet another batch game

#2 captainhampton  Icon User is offline

  • Jawsome++;
  • member icon

Reputation: 13
  • View blog
  • Posts: 548
  • Joined: 17-October 07

Re: Yet another batch game

Posted 01 July 2008 - 08:54 AM

First off welcome to DreamInCode and to the world of programming in general! Second, make sure to contain your code within the [code] boxes provided here. The one suggestion I can make is that anytime you have a lot of reptitive material going on, loops are usually the best way to save yourself some work. You should probably get to the subject of loops soon.
Was This Post Helpful? 0
  • +
  • -

#3 Nahuo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 24-June 08

Re: Yet another batch game

Posted 01 July 2008 - 09:08 AM

Hi, thanks for the welcome.
I've made something that sort of loops in another proyect, the thing is that I wouldnt know how to make loops work here since everyline describes a different situation.
Maybe (probably indeed) I dont know enough about loops to solve it like that?
IŽll try to get more into them.
Thanks for your advice.
Was This Post Helpful? 0
  • +
  • -

#4 stayscrisp  Icon User is online

  • フカユ
  • member icon

Reputation: 999
  • View blog
  • Posts: 4,177
  • Joined: 14-February 08

Re: Yet another batch game

Posted 01 July 2008 - 09:45 AM

please edit with code enclosure :) plz plz
Was This Post Helpful? 0
  • +
  • -

#5 Nahuo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 24-June 08

Re: Yet another batch game

Posted 01 July 2008 - 02:25 PM

Some how I couldnt edit the original post, but here is the code again:

@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

This post has been edited by Nahuo: 01 July 2008 - 02:29 PM

Was This Post Helpful? 0
  • +
  • -

#6 Nahuo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 24-June 08

Re: Yet another batch game

Posted 03 July 2008 - 11:13 AM

Well, I dont know if any of you tried the game out. Some feedback about that would be much aprecciated.
And again, if any of you know a way out of writing every possible situation down and wants to advice something on that, that would be very welcome since Im working on a new game now but the number of situations that may occur on a 5x5 board are quite huge actually.
I might post some code of that later.
I promise to post it inside a code box for you to be happy :)
Was This Post Helpful? 0
  • +
  • -

#7 Nahuo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 24-June 08

Re: Yet another batch game

Posted 04 July 2008 - 11:49 PM

View Postcaptainhampton, on 1 Jul, 2008 - 08:54 AM, said:

anytime you have a lot of reptitive material going on, loops are usually the best way to save yourself some work. You should probably get to the subject of loops soon.


I've been thinking about that and I should say this IS a loop, the entire thing.
When playing the game you type stuff on the command prompt to make something change. When you are done, you run the program again and it checks out what you've done and responds (when it cans), but its always the same thing, over and over again. To play one game you have to run the program at least 3 times to finish it. Could that be a loop? Or did I get it wrong?

This post has been edited by Nahuo: 04 July 2008 - 11:52 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1