Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- :: You need the other file to play the game
- :: http://pastebin.com/a62jHD6h
- SetLocal EnableDelayedExpansion
- mode con cols=50 lines=20
- title Snake Game by Oysi
- color 0a
- :: File directory
- cd "%userprofile%"
- if not exist "iccs" md "iccs"
- cd "%userprofile%\iccs"
- if not exist "Snake" md "Snake"
- cd "%userprofile%\iccs\Snake"
- :reset
- :: Reset settings
- > "move.bat" echo set move=
- goto menu
- :menu
- cls
- echo.
- echo SNAIK
- echo -------
- echo.
- set /p menu=Your move:
- call "move.bat"
- if /i "%menu:~0,1%"=="a" (if not "%move%"=="d" (> "move.bat" echo set move=a))
- if /i "%menu:~0,1%"=="w" (if not "%move%"=="s" (> "move.bat" echo set move=w))
- if /i "%menu:~0,1%"=="s" (if not "%move%"=="w" (> "move.bat" echo set move=s))
- if /i "%menu:~0,1%"=="d" (if not "%move%"=="a" (> "move.bat" echo set move=d))
- if /i "%menu:~0,5%"=="start" (> "move.bat" echo set move=start)
- goto menu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement