Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- title Dice
- MODE CON COLS=40 LINES=10
- :run
- color E0
- cls
- echo Enter starting cash
- set /p start=
- if /i %start% gtr 32767 goto error
- if /i %start% lss 1 goto error
- :setbetamount
- color E0
- cls
- echo Enter betting amount
- set /p betamount=
- :begin
- set /a swag= %random% %% 100 +1
- set /a swag= %random%
- cls
- echo Rolling
- ping 1.1.1.1 -n 1 -w 500> nul
- cls
- echo Rolling.
- ping 1.1.1.1 -n 1 -w 500> nul
- cls
- echo Rolling..
- ping 1.1.1.1 -n 1 -w 500> nul
- cls
- echo Rolling...
- ping 1.1.1.1 -n 1 -w 500> nul
- cls
- echo You rolled a %swag%
- if %swag% GTR 51 goto win
- else
- :lose
- echo You lose.
- echo Better luck next time!
- pause>nul
- goto run
- :win
- color 27
- echo You win!
- echo Congratulations!
- pause>nul
- goto run
- :error
- cls
- color 47
- echo Number is not between 1 and 32767.
- ping localhost -n >nul 2
- goto start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement