Hello i would like help for tic tac toe .. I want to do something when the 1st and the 2nd case is checked by a player ..
@echo off
setlocal EnableDelayedExpansion EnableExtensions
set case9=player
set case13=player
set case17=player
for /l %%a in (9, 4, 17) do (
set x_case%%a=!case%%a!
if "!x_case%%a!"=="player" if "!x_case%%a+%%a!"=="player" (
batbox /g 17 14 /d " X "
)
)
pause
It's named case 9 13 17 because of the length of the console and the tic tac toe grid. I want help and explanation about how can i do %%a + %%a, i tried
set plus_case=%%a+4
echo !case%plus_case%!
but it still don't work because we're in for section ... Thanks you for help and can you help me to find a title, i don't know what title can i put.