Do you like Snake? You sure will enjoy this game.
This readme will walk you through how to install, how to play the classic game with a fun twist!
To get a local copy up and running follow these simple steps.
Please have Python 3(https://www.python.org/downloads/) and pip(https://packaging.python.org/en/latest/key_projects/#pip) before the below installation.
- Clone the repo:
git clone https://github.com/brianlee9090/watch-out-for-the-snake.git
- pip install the following libraries:
- You can play this game with either:
- your keyboard
- your right hand (make sure your right hand is in the frame)
- Scripts to run:
Otherwise, to play by your keyboard, `%run ./main.py` to start the game.
You are the chicken and your goal is to eat as many cookies as possible while avoiding the snake. Some things to keep in mind:
- Your chicken gets 1 extra chicken friend everytime it eats a cookie
- As your chicken army grows, your line of chickens moves faster.
- The snake is smart so it changes position if you succeed in avoiding it.
The game ends when:
- Your chicken hits the snake
- Your chicken hits any of the walls
- Your chicken hits one of its friends
- Finger controls:
-
Put your index finger straight up for up motion:
-
Put your index finger down for down motion
-
Tilt your index finger towards the left for left motion
-
Tilt your index finger towards the right for right motion
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
2. Keyboard controls: Use the "up⬆️", "down⬇️", "left⬅️", "right➡️" keys on your keyboardto play
Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.
For more examples, please refer to the Documentation
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
Brian Lee - linkedIn
Project Link: https://github.com/brianlee9090/watch-out-for-the-snake