Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.
@echo offrem Double Dice by Jarjee 6/1/07title Double Dice!:Secho Double Dice!set money=100echo.:1echo How much do you wager?set /p wager=You have $%money%: if /I %wager%==save goto :Scoreif /I %wager%==highscore goto :Highif /I %wager%==help goto :Helpif /I %wager%==delete goto :Delif /I %wager%==clear goto :Clsif %wager% LSS 0 echo You can't wager a negative! &goto :1if %wager% GTR %money% echo You don't have that money! &goto :1set /a money="money-wager"set /a DICE1=%random% %%6 + 1 >nulecho You rolled a %DICE1%.set /a DICE2=%random% %%6 + 1 >nulecho You rolled a %DICE2%if %DICE1%==%DICE2% goto :WIN!echo.if %money%==0 goto :Fgoto :1:Fecho Do you want to play again?(y/n)set /p input=(y/n): if /I %input%==y Cls &goto :Sif /I %input%==n goto :GOgoto :F:WIN!echo.echo You Win! Here's your winnings!echo.set mem=%wager%set /a wager="wager*6+wager"set /a money="money+wager"set /a wager="wager-mem"echo You've won $%wager%!set wager=0echo.goto :1:GOecho.echo.ping 127.0.0.1 -n 1 >nulecho.echo.ping 127.0.0.1 -n 1 >nulecho.echo.ping 127.0.0.1 -n 1 >nulecho.echo.ping 127.0.0.1 -n 1 >nulecho.echo.ping 127.0.0.1 -n 1 >nulecho.echo.ping 127.0.0.1 -n 1 >nulecho.echo.ping 127.0.0.1 -n 1 >nulecho.echo.ping 127.0.0.1 -n 1 >nulecho.echo.ping 127.0.0.1 -n 1 >nulecho.echo.ping 127.0.0.1 -n 1 >nulecho.echo.ping 127.0.0.1 -n 1 >nulecho.echo.echo GAME OVERecho.echo.ping 127.0.0.1 -n 1 >nulecho.echo.ping 127.0.0.1 -n 1 >nulecho.echo.ping 127.0.0.1 -n 1 >nulecho.echo.ping 127.0.0.1 -n 1 >nulecho.echo.ping 127.0.0.1 -n 1 >nulecho.echo.ping 127.0.0.1 -n 1 >nulecho.echo.ping 127.0.0.1 -n 1 >nulecho.echo.ping 127.0.0.1 -n 1 >nulecho.echo.ping 127.0.0.1 -n 1 >nulecho.echo.ping 127.0.0.1 -n 1 >nulecho.echo.ping 127.0.0.1 -n 1 >nulecho.echo.:Scoreset /p name=Type your name here: echo %Name% : $%Money%>>Highscore.dataexit:Highecho.rem My thanks to SideWinder!for /F "delims=" %%i in (Highscore.data) do @echo %%iecho.goto :1:Helpecho.echo Double Dice is a game of chance. If you get the same number twice,echo the wager that you bet is returned sixfold. Otherwise you get nothing.echo There are few commands in this program:echo Save: This enters your profile into the highscore chartecho Highscore: This loads the highscore if it is presentecho Delete: Removes the Highscoreecho Clear: Clears the screenecho Help: Returns this information form.echo.goto :1:Delclsdel Highscore.datagoto :1:Clsclsgoto :1
Could you explain what the ":1" and "GOTO 1" commands do please?Rgds,MM
He's playing a game called IRL. Great graphics, *censored* gameplay.
Many thanks Rgds,MM
Are there another .bat based games out there?