Well, Cmd or command-prompt line is used really for sending commands or orders to the computer or computers. I'm gonna teach you how to make a basic tic-tax-toe game to a highly complex game. No worry will be making the simple games first or simple programs first.
First, type "@echo off"
Next, give it a title by typing "title example".Now I will type and example program for you.
@echo off
color 0c
title Test Program
echo Press any key to continue.
set /p A=Enter:
echo You made a program!!!
Pause
Now as you could see when you used echo it displayed what you typed next to it and when you typed
"set /p A=Enter:" it didn't do much but if you put "if %A% == 1 goto 2".
When you type goto 1 or 2 or 3 it sees if their is a directory called 1 or 2 or 3 then tries to go to it. When you make a directory you need to start it with
"
:1
cls
echo 1.Main
echo 2.leave
set /p A=Enter:
if %A% == 1 goto 2
if %A% == 2 Exit
"
No we have to create our second directory so...and add a detailed version.
"
cls
:2
echo ______
echo|1.Attack |
echo|2.Train |
echo|3.Leave |
echo|______|
set /p A=Enter:
if %A% == 1 goto 4
if %A% == 2 goto 5
if %A% == 3 goto 1
"
Ok now we have another screen now and you maybe wondering what "cls" is this just clears the screen.
Now let's make variables.
"set /a example = 0
"
It's easy so now you know how to make variables but not add,subtract,divide, or multiply.So just.
"
set /a example += 1
set /a example *= 1
set /a example /= 1
set /a example -= 1
"
Good now make a variable game then come back.
Let's make that tic tac toe game. We will make it so you verse the computer it's self.
Warning you will be making a lot of directories. Try to type this and not just copy and paste.
"
@echo off
title Tic-Tac-Toe
Color 0e
:Start
"
