Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- color 2
- set/a wins=0
- set/a losses=0
- set/p name=What is your name?:
- set/p scorelist=What would you like to name your list of scores?:
- echo.
- echo Use your intent to make the random number equal zero which will result in the death
- echo of the goblin. Each Goblin has a 50 percent chance of being defeated, to defeat all
- echo ten goblins, you must focus your consciousness on increasing your probability of
- echo success to 100%. If the answer is 1 you loose, if the answer is 0 you win.
- pause
- echo Increase your probability now and press enter to know your fate!
- pause
- set /a goblina=%random% %% 2
- echo %goblina%
- if %goblina% EQU 0 (set/a wins=%wins%+1
- echo You have defeated the Goblin!)
- if %goblina% EQU 1 (set/a losses=%losses%+1
- echo You did not defeat the Goblin!)
- pause
- echo Increase your probability now and press enter to know your fate!
- pause
- set /a goblinb=%random% %% 2
- echo %goblinb%
- if %goblinb% EQU 0 (set/a wins=%wins%+1
- echo You have defeated the Goblin!)
- if %goblinb% EQU 1 (set/a losses=%losses%+1
- echo You did not defeat the Goblin!)
- pause
- echo Increase your probability now and press enter to know your fate!
- pause
- set /a goblinc=%random% %% 2
- echo %goblinc%
- if %goblinc% EQU 0 (set/a wins=%wins%+1
- echo You have defeated the Goblin!)
- if %goblinc% EQU 1 (set/a losses=%losses%+1
- echo You did not defeat the Goblin!)
- pause
- echo Increase your probability now and press enter to know your fate!
- pause
- set /a goblind=%random% %% 2
- echo %goblind%
- if %goblind% EQU 0 (set/a wins=%wins%+1
- echo You have defeated the Goblin!)
- if %goblind% EQU 1 (set/a losses=%losses%+1
- echo You did not defeat the Goblin!)
- pause
- echo Increase your probability now and press enter to know your fate!
- pause
- set /a gobline=%random% %% 2
- echo %gobline%
- if %gobline% EQU 0 (set/a wins=%wins%+1
- echo You have defeated the Goblin!)
- if %gobline% EQU 1 (set/a losses=%losses%+1
- echo You did not defeat the Goblin!)
- pause
- echo Increase your probability now and press enter to know your fate!
- pause
- set /a goblinf=%random% %% 2
- echo %goblinf%
- if %goblinf% EQU 0 (set/a wins=%wins%+1
- echo You have defeated the Goblin!)
- if %goblinf% EQU 1 (set/a losses=%losses%+1
- echo You did not defeat the Goblin!)
- pause
- echo Increase your probability now and press enter to know your fate!
- pause
- set /a gobling=%random% %% 2
- echo %gobling%
- if %gobling% EQU 0 (set/a wins=%wins%+1
- echo You have defeated the Goblin!)
- if %gobling% EQU 1 (set/a losses=%losses%+1
- echo You did not defeat the Goblin!)
- pause
- echo Increase your probability now and press enter to know your fate!
- pause
- set /a goblinh=%random% %% 2
- echo %goblinh%
- if %goblinh% EQU 0 (set/a wins=%wins%+1
- echo You have defeated the Goblin!)
- if %goblinh% EQU 1 (set/a losses=%losses%+1
- echo You did not defeat the Goblin!)
- pause
- echo Increase your probability now and press enter to know your fate!
- pause
- set /a goblini=%random% %% 2
- echo %goblini%
- if %goblini% EQU 0 (set/a wins=%wins%+1
- echo You have defeated the Goblin!)
- if %goblini% EQU 1 (set/a losses=%losses%+1
- echo You did not defeat the Goblin!)
- pause
- echo Increase your probability now and press enter to know your fate!
- pause
- set /a goblinj=%random% %% 2
- echo %goblinj%
- if %goblinj% EQU 0 (set/a wins=%wins%+1
- echo You have defeated the Goblin!)
- if %goblinj% EQU 1 (set/a losses=%losses%+1
- echo You did not defeat the Goblin!)
- pause
- echo You have %wins% wins and %losses% losses
- echo.
- echo Player %name% had Wins:%wins% Losses:%losses%>>%scorelist%.txt
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement