that1paster

kewl batchh gammmeee and calculator

Apr 28th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.27 KB | None | 0 0
  1. @echo off
  2. set /a pts=0  
  3. color 0F
  4. :Menu
  5. Title 'A game'
  6. cls
  7. echo 1. Start Game
  8. echo 2. Calculator
  9. echo Please, pick. (use the number)
  10. set /p answer=
  11. if %answer% equ 1 goto Start
  12. if %answer% equ 2 goto Calculator
  13. if %answer% neq 1 then goto Menu
  14. :Start
  15. cls
  16. echo So, what's your name?
  17. echo.
  18. set /p name=
  19. pause
  20. echo Hello then, %name%. I keep my name private.
  21. pause
  22. set /a pts=%pts%+1
  23. cls
  24. :start
  25. echo Go to the woods or city?
  26. set /p where=
  27. if %where% equ woods goto Woods
  28. if %where% equ city goto City
  29. if %where% equ Woods goto Woods
  30. if %where% equ City goto City
  31. if %where% neq woods goto start
  32. :Woods
  33. cls
  34. echo You lose! : class="re0">( you will now go to start.
  35. goto menu
  36. :city
  37. color 06
  38. pause
  39. cls
  40. echo What is 9 + 10?
  41. pause
  42. :math1
  43. set /p math=
  44. if %math% equ 19 goto math1
  45. if %math% equ 21 goto math2
  46. if %math% neq 19 goto school
  47. :math1
  48. pause
  49. :math2
  50. pause
  51. echo fine, fine you go forward
  52. set /a pts=%pts%-2
  53. :school
  54. pause
  55. echo How do you get this wrong and not the joke? Get banished!
  56. goto menu
  57. :Calculator
  58. cls
  59. echo Number 1:
  60. set /p var1=
  61. echo Number 2:
  62. set /p var2=
  63. echo 1 = add, 2 = subtract, 3 = multiply, 4 = divide
  64. set /p calcop=
  65. if calcop=1 goto add
  66. :add
  67. set /a Answer=%var1%+%var2%
  68. goto calcfin
  69. :calcfin
  70. echo  %Answer%
  71. pause
  72. cls
  73. goto Menu
Advertisement
Add Comment
Please, Sign In to add comment