v4.1 / v5

This commit is contained in:
homeuser 2018-10-19 17:17:40 +02:00
parent f6fda052af
commit 48aca9ca73
23 changed files with 168 additions and 0 deletions

BIN
v5/ANIMATION.exe Normal file

Binary file not shown.

BIN
v5/CALCULATOR.exe Normal file

Binary file not shown.

BIN
v5/CONSOLE.exe Normal file

Binary file not shown.

BIN
v5/MAKEANIMATION.exe Normal file

Binary file not shown.

BIN
v5/MOVEBUFFER.exe Normal file

Binary file not shown.

BIN
v5/PRINT.exe Normal file

Binary file not shown.

BIN
v5/READKEY.exe Normal file

Binary file not shown.

BIN
v5/RENDER-GRAPH.exe Normal file

Binary file not shown.

BIN
v5/RENDER-TABLE.exe Normal file

Binary file not shown.

BIN
v5/SLEEP.exe Normal file

Binary file not shown.

BIN
v5/STARTINVISIBLE.exe Normal file

Binary file not shown.

BIN
v5/STRCONTAINS.exe Normal file

Binary file not shown.

BIN
v5/STRLEN.exe Normal file

Binary file not shown.

BIN
v5/UTF16.exe Normal file

Binary file not shown.

BIN
v5/cTIME.exe Normal file

Binary file not shown.

43
v5/demo/Animation.bat Normal file
View file

@ -0,0 +1,43 @@
@echo off
echo USED TOOLS:
echo MAKEANIMATION.exe
echo =^> MAKEANIMATION Rotate 0
echo =^> MAKEANIMATION Rotate 1
echo =^> MAKEANIMATION Rotate 2
echo =^> MAKEANIMATION Rotate 3
echo ANIMATION.exe
echo =^> START /B ANIMATION 200 %%animation%%
echo CONSOLE.exe
echo =^> CONSOLE cursorsize 0
echo.
..\CONSOLE cursorsize 0
..\MAKEANIMATION Rotate 0 >0.txt
..\MAKEANIMATION Rotate 1 >1.txt
..\MAKEANIMATION Rotate 2 >2.txt
..\MAKEANIMATION Rotate 3 >3.txt
set /p a0=<0.txt
set /p a1=<1.txt
set /p a2=<2.txt
set /p a3=<3.txt
del 0.txt
del 1.txt
del 2.txt
del 3.txt
START /B ..\ANIMATION 200 %a0%
pause>NUL
echo.
rem taskkill /f /IM ANIMATION.exe>NUL
START /B ..\ANIMATION 200 %a1%
pause>NUL
echo.
rem taskkill /f /IM ANIMATION.exe>NUL
START /B ..\ANIMATION 200 %a2%
pause>NUL
echo.
rem taskkill /f /IM ANIMATION.exe>NUL
START /B ..\ANIMATION 200 %a3%
pause>NUL
echo.
rem taskkill /f /IM ANIMATION.exe>NUL
pause>NUL
exit

25
v5/demo/Calculate.bat Normal file
View file

@ -0,0 +1,25 @@
@echo off
echo USED TOOLS:
echo CALCULATOR.exe
echo =^> CALCULATOR I %%un1%%
echo =^> CALCULATOR I %%un2%%
echo =^> CALCULATOR D %%n1%% %%n2%%
echo =^> CALCULATOR -I %%result%%
echo PRINT.exe
echo.
echo Example Division
echo (Accepts Decimal Places)
set /p un1=Number 1:
set /p un2=Number 2:
..\CALCULATOR I 0 %un1% 3
set n1=%errorlevel%
..\CALCULATOR I 0 %un2% 3
set n2=%errorlevel%
..\CALCULATOR D %n1% %n2% 3
set result=%errorlevel%
echo.
..\PRINT "%un1% / %un2% = "
..\CALCULATOR -I 0 %result% 3
echo.
echo.
pause

12
v5/demo/Parabola.bat Normal file
View file

@ -0,0 +1,12 @@
@echo off
..\CONSOLE windowsize 211 50
echo USED TOOLS:
echo RENDER-GRAPH.exe
echo =^> RENDER-GRAPH 20 abs(X^^^^2)/16
echo CONSOLE.exe
echo =^> CONSOLE windowsize 211 50
echo =^> CONSOLE windowscroll 0 0
echo.
..\RENDER-GRAPH 20 abs(X^^2)/16
..\CONSOLE windowscroll 0 0
pause>NUL

75
v5/demo/TicTacToe.bat Normal file
View file

@ -0,0 +1,75 @@
rem USED TOOLS:
rem RENDER-TABLE
rem
@echo off
setlocal enabledelayedexpansion
set place=X
set x0=
set x1=
set x2=
set x3=
set x4=
set x5=
set x6=
set x7=
set x8=
set lsel=0
title TicTacToe
rem PATTERNS 012 345 678 036 147 258 048 246
set patterns_1=0,1,2
set patterns_2=3,4,5
set patterns_3=6,7,8
set patterns_4=0,3,6
set patterns_5=1,4,7
set patterns_6=2,5,8
set patterns_7=0,4,8
set patterns_8=2,4,6
set patterns_s09=0,2,6,8
set patterns_s10=1,3,5,7
set anyisvalid=false
set charX=88
set charO=79
set optionID=TicTacToe
goto start
:d
set anyisvalid=false
for /f "tokens=1* delims==" %%a in ('set patterns_') do (
call :checkpattern "%%a" "%%b"
)
:start
Cls
set mode=SELECT
if "%anyisvalid%"=="true" set mode=EMU-SELECT
echo USED TOOLS:
echo RENDER-TABLE.exe
echo.
..\RENDER-TABLE %mode% 3 3 "%x0%" "%x1%" "%x2%" "%x3%" "%x4%" "%x5%" "%x6%" "%x7%" "%x8%"
if "%anyisvalid%"=="true" echo.
if "%anyisvalid%"=="true" echo %shouldbe% won.
if "%anyisvalid%"=="true" pause
if "%anyisvalid%"=="true" exit
set lsel=%errorlevel%
set x%lsel%=%place%
set place2=%place%
if "%place2%"=="X" set place=O
if "%place2%"=="O" set place=X
goto d
:checkpattern
set origX=%lsel%
set shouldbe=!x%origX%!
set pattern=%~2
set valid=true
for %%a in (%pattern%) do (
if "!x%%a!" NEQ "%shouldbe%" set valid=false
)
if "%valid%"=="true" set anyisvalid=true
exit /b

13
v5/demo/Time.bat Normal file
View file

@ -0,0 +1,13 @@
@echo off
echo USED TOOLS:
echo uTIME.exe
echo =^> uTIME -cf %0
echo cTIME.exe
echo =^> cTIME %%ts%%
echo.
..\uTIME -fc %0 >time.txt
set /p ts=<time.txt
del time.txt
..\PRINT "The creation time of %0 is: "
..\cTIME %ts%
pause

BIN
v5/uTIME.exe Normal file

Binary file not shown.

BIN
v5/xCOLOR.exe Normal file

Binary file not shown.

BIN
v5/xPRINT.exe Normal file

Binary file not shown.