Skip to content

brianlee9090/watch-out-for-the-snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Chicken Cookie Snake

Watch Out For The Snake

About The Project

screenshot

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!

(back to top)

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

Please have Python 3(https://www.python.org/downloads/) and pip(https://packaging.python.org/en/latest/key_projects/#pip) before the below installation.

Installation

  1. Clone the repo:
    git clone https://github.com/brianlee9090/watch-out-for-the-snake.git
  2. pip install the following libraries:

(back to top)

Game instructions

How to start the game

  1. You can play this game with either:
    1. your keyboard
    2. your right hand (make sure your right hand is in the frame)
  2. Scripts to run:
To play by motion sensor/fingers, `%run ./hand.py` first (skip this step if you want to play with your keyboard).
Otherwise, to play by your keyboard, `%run ./main.py` to start the game.

How to play

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:

  1. Your chicken gets 1 extra chicken friend everytime it eats a cookie
  2. As your chicken army grows, your line of chickens moves faster.
  3. The snake is smart so it changes position if you succeed in avoiding it.

End of game

The game ends when:

  1. Your chicken hits the snake
  2. Your chicken hits any of the walls
  3. Your chicken hits one of its friends

How to operate the game

  1. Finger controls:
  • Put your index finger straight up for up motion:
    finger up
  • Put your index finger down for down motion
    finger down
  • Tilt your index finger towards the left for left motion
    finger left
  • Tilt your index finger towards the right for right motion
    finger right

  • 2. Keyboard controls: Use the "up⬆️", "down⬇️", "left⬅️", "right➡️" keys on your keyboardto play

    (back to top)

    Usage

    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

    (back to top)

    Contributing

    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!

    1. Fork the Project
    2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
    3. Commit your Changes (git commit -m 'Add some AmazingFeature')
    4. Push to the Branch (git push origin feature/AmazingFeature)
    5. Open a Pull Request

    (back to top)

    Contact

    Brian Lee - linkedIn

    Project Link: https://github.com/brianlee9090/watch-out-for-the-snake

    (back to top)

About

Watch Out For The Snake

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages