text stringlengths 0 834k |
|---|
GOTO start |
:find_dp0 |
SET dp0=%~dp0 |
EXIT /b |
:start |
SETLOCAL |
CALL :find_dp0 |
IF EXIST ""%dp0%\node.exe"" ( |
SET ""_prog=%dp0%\node.exe"" |
) ELSE ( |
SET ""_prog=node"" |
SET PATHEXT=%PATHEXT:;.JS;=;% |
) |
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & ""%_prog%"" ""%dp0%\..\swig\bin\swig.js"" %* |
",16.8888888889,98,0.6348684211 |
219751,f313dfe061e8ead62b5690edf7289bf0877eb8db,20795,bat,Batchfile,tic-tac-toeaditya.bat,adityacopyifr/tictactoe-in-bat-extension,7f2329fdf67da1f9dea205fc262f9cbbf952c890,['MIT'],1.0,2020-06-30T07:24:00.000Z,2020-06-30T07:24:00.000Z,tic-tac-toeaditya.bat,adityacopyifr/tictactoe-in-bat-extension,7f2329fdf67da1f9dea205fc262f9cbbf952c890,['MIT'],,,,tic-tac-toeaditya.bat,adityacopyifr/tictactoe-in-bat-extension,7f2329fdf67da1f9dea205fc262f9cbbf952c890,['MIT'],,,,"@echo off |
title kushal's Tic Tac Toe |
title Noughts and Crosses |
setlocal enabledelayedexpansion |
::~ ^^^ Stops all commands appearing on screen, sets the title and enables the use of ! for environment variable |
:menu |
cls |
echo Main Menu |
echo To Play A 1-Player Game, Enter 1 |
echo To Play A 2-Player Game, Enter 2 |
echo To Exit, Enter 3 |
set /p menu= |
if not defined menu goto menu |
if /i %menu% equ 1 ( |
set menu= |
cls |
goto 1p |
) |
if /i %menu% equ 2 ( |
set menu= |
cls |
goto 2p |
) |
if /i %menu% equ 3 ( |
goto end |
) |
set menu= |
goto menu |
::~ ^^ The menu system, gives all the options, allows the user to input a number using ""set /p menu="" |
:~ If the user didn't enter a value, it 'goto's back to ask again. |
::~ Checks the Menu variable, tests to see if it matches 1, 2 or 3, then 'goto's the appropriate place. |
:1p |
set turns=0 |
set x1=0 |
set x2=0 |
set x3=0 |
set x4=0 |
set x5=0 |
set x6=0 |
set x7=0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.