:: ::Penney's Game Task from Rosetta Code Wiki ::Batch File Implementation :: ::Please Directly Open the Batch File to play... :: @echo off setlocal enabledelayedexpansion title The Penney's Game Batch File set cpu=0&set you=0 cls echo. echo Penney's Game echo Batch File Implementation :main set you_bet=&set cpu_bet= echo.&echo --------------------------------------------------------&echo. echo CPU's Score: %cpu% Your Score: %you% echo. nul nul set /a newline=%cnt%%%60 if %newline%==59 ( echo. nul || ( echo [Invalid Input...]&echo.&goto %1 ) if /i "!you_bet!"=="%cpu_bet%" (echo [Bet something different...]&echo.&goto %1) for %%i in ("t=T" "h=H") do set "you_bet=!you_bet:%%~i!" goto :EOF