Giter Club home page Giter Club logo

snakegame's Introduction

SnakeGame

Gameplay.mp4

This is a classic Snake game implemented in C++. It's a simple yet entertaining game where the player controls a snake that grows longer as it consumes food.

How to Play

  1. Clone or download the repository.
  2. Compile the code using a C++ compiler, e.g., gcc main.cpp -o snake_game.
  3. Run the game with ./snake_game (on Unix-based systems) or snake_game.exe (on Windows).

Controls

  • Use the arrow keys to control the direction of the snake:
    • Up:
    • Down:
    • Left:
    • Right:
    • Enter: 🔄

Gameplay

  • The snake starts with a length of one.
  • Move the snake to collect food (green circles).
  • The snake grows in size when it eats food.
  • Try to achieve the highest score by eating as much food as possible without colliding with yourself.

License

This Snake Game in C++ is open-source and available under the MIT License. You are free to use and modify the code for your purposes.

Happy gaming! 🐍

snakegame's People

Contributors

dheovani 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.