A simple snack game developed in Go. The objective of the game is to navigate the snack and eat the apples while avoiding the walls and the snack's own body.
- Clone the repository: git clone https://github.com/MaxwellKuo47/testSnackGame.git
- Navigate to the project directory: cd testSnackGame
- Run the game: go run main.go
- Use the arrow keys to navigate the snack.
- Eat the apples represented by 'A' on the screen.
- Avoid hitting the walls represented by 'W' or the snack's own body.
- The game speeds up based on the difficulty level set.
- Press
Esc
orCtrl+C
to quit the game.
- Go
- tcell library for terminal-based applications