Giter Club home page Giter Club logo

snake-game's Introduction

Snake Game

A classic Snake Game implemented in Python.

Table of Contents

Description

This is an implementation of the classic Snake Game. The player controls a snake that moves around the screen, eating food to grow longer. The game ends if the snake collides with the walls or itself. The goal is to achieve the highest possible score by eating as much food as possible.

Features

  • Classic Snake gameplay
  • Select difficulty
  • Score tracking
  • Responsive controls
  • Game over screen with final score

How to Play

  1. Run the game.
  2. Use the Controls to navigate the snake and eat food.
  3. Avoid collisions with the walls and the snake's own body.
  4. Try to achieve the highest possible score before the game ends.

Controls

  • Type as prompted for the difficulty
  • Up arrow changes snake direction to North
  • Down arrow changes snake direction to South
  • Left arrow changes snake direction to East
  • Right arrow changes snake direction to West
  • If you lost, follow the prompt if you want to play again
  • If in Game Over screen, just click on screen to end the game

Screenshots

Initial Screen to Choose Difficulty 1.png Gameplay 2.png What to Play Again? Screen 3.png Game Over Screen 4.png

Contributing

  1. Fork the repository.
  2. Create a new branch.
  3. Make your changes and commit them.
  4. Push to your fork and submit a pull request.

snake-game's People

Contributors

gamesbondtriangle avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.