Skip to content

classic Snake Game in the console with this Python-based rendition

Notifications You must be signed in to change notification settings

shashankatthaluri/Invisible_snake_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Snake Game

Welcome to the Snake Game! 🐍🎮

This simple console-based Snake Game is written in Python. It provides an engaging and classic gaming experience where you control a snake, eat apples, and try to score as high as possible.

Controls

  • Press 'w' to move up
  • Press 's' to move down
  • Press 'a' to move left
  • Press 'd' to move right
  • Press 'q' to quit

Getting Started

  1. Clone the repository to your local machine:

    git clone https://github.com/shashankatthaluri/Invisible_snake_game/snake-game.git
  2. Navigate to the project directory:

cd snake-game
  1. Run the game:
python snake_game.py

Have fun playing the Snake Game!

Game Features

Colorful console-based interface using colorama Responsive controls for an interactive gaming experience Score tracking and a congratulatory scorecard at the end

Dependencies

  • Python 3.x
  • colorama: Install using pip install colorama

Game output

Controls:
- Press 'w' to move up
- Press 's' to move down
- Press 'a' to move left
- Press 'd' to move right
- Press 'q' to quit

Score: 8

 █  █  █  █  █  █  █  █  █  █  █  █  █  █  █  █  █  █  █  █  █  █  █  █  █
 █                                                                       █
 █                                                                       █
 █                                                                       █
 █                                                                       █
 █                                                                       █ 
 █                                                                       █ 
 █                                                  ●  ●  ●  ●           █ 
 █                                                  ●  ●  ⦿  ●           █ 
 █                                                           ●           █ 
 █                                                           ●           █ 
 █                                                           ●           █ 
 █                                                        🍎              █ 
 █                                                                       █ 
 █  █  █  █  █  █  █  █  █  █  █  █  █  █  █  █  █  █  █  █  █  █  █  █  █ 

Game Over! You hit the wall or yourself.

-------- Scorecard --------
🎉 Congratulations! You scored 8 points. 🎉
🌟 Well done! You're becoming a skilled snake player. 🌟

Acknowledgments

This project is inspired by the classic Snake Game. Feel free to contribute or customize the game further! If you encounter any issues or have suggestions, please open an issue.

Enjoy the game! 🐍🕹️

Note:

  • you can add poison 🌶 where the snake need to escape. This is to just confuse the player.
  • you might flickering while playing. Its common in console based games you can modify the speed if you needed.

Feel free to modify and play the game!!