Code: Select all
@echo off
echo Tic-Tac-Toe
pause
cls
:newgame
set /p a1="n"
set /p a2="n"
set /p a3="n"
set /p b1="n"
set /p b2="n"
set /p b3="n"
set /p c1="n"
set /p c2="n"
set /p c3="n"
echo You are X, you also get first move.
pause
cls
echo %a1% | %a2% | %a3%
echo ---+---+---
echo %b1% | %b2% | %b3%
echo ---+---+---
echo %c1% | %c2% | %c3%
echo/
echo a1 | a2 | a3
echo ---+---+---
echo b1 | b2 | b3
echo ---+---+---
echo c1 | c2 | c3
set /p "Enter spot to put a "X": "
pause
I know it's not complete. Also is there a way to have the variables set w/o having to hit enter 9 times?