Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :main
- cls
- set /a luck=0
- set /a number=1
- :luck
- cls
- title Luck - %luck%%
- set /a rand=%random% %% 0 + %number%
- cls
- echo Masz %luck% procent
- echo Wybierz numerek od 0 do %number%
- set/p "cho=>"
- if %cho%==%rand% goto h
- goto unluck
- :h
- set /a number=%number%+1
- if %number% geq 10 goto win
- goto luck
- :unluck
- cls
- echo Masz %luck% procent szczescia! Poprawnie: %rand%. Niestety, przegrales.
- pause
- goto main
- :win
- cls
- echo Yeah, you win. Congrats.
- pause
- goto main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement