pkprajapati7402 / Snake-game

The CLI Snake Game is a command-line implementation of the classic Snake game built using Python's curses library. Players navigate a snake to consume apples and grow longer, all while avoiding collisions with the walls and the snake's own body. The game features an intuitive menu system, a scoreboard to track high scores.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sure! Here is a sample README for your Snake Game repository on GitHub:


CLI Snake Game

Welcome to the CLI Snake Game! This is a classic Snake game implemented in Python using the curses library for a command-line interface. Navigate the snake to eat the apple and grow longer without colliding with the walls or itself.

Features

  • Classic Snake gameplay
  • Pause and resume functionality
  • Scoreboard to track your highest scores
  • Simple and intuitive controls

Controls

  • W, K, : Move Up
  • A, H, : Move Left
  • S, J, : Move Down
  • D, L, : Move Right
  • Space, O, Enter : Pause/Resume

Getting Started

Prerequisites

Make sure you have Python installed on your system. This game uses the curses module, which is included with Python on Unix-based systems. On Windows, you may need to install the windows-curses module.

Installation

  1. Clone the repository:

    git clone https://github.com/pkprajapati7402/Snake-game.git
    cd Snake-game
  2. Install the required dependencies:

    On Windows:

    pip install windows-curses
  3. Run the game:

    python snake_game.py

How to Play

  1. Run the game using the above command.
  2. Use the menu to select "Play", "Scoreboard", or "Exit".
  3. Control the snake using the specified keys to eat the apple and grow longer.
  4. Avoid running into the walls or the snake's own body.
  5. Press the pause key to pause/resume the game.
  6. Check your scores in the "Scoreboard" menu.

Screenshots

Include some screenshots of your game in action here.

Contributing

Contributions are welcome! Please fork this repository and submit a pull request for any enhancements, bug fixes, or additional features.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

  • This game uses the curses library for handling the command-line interface.
  • Inspired by the classic Snake game.

Feel free to customize the README further according to your preferences or specific details of your project.

About

The CLI Snake Game is a command-line implementation of the classic Snake game built using Python's curses library. Players navigate a snake to consume apples and grow longer, all while avoiding collisions with the walls and the snake's own body. The game features an intuitive menu system, a scoreboard to track high scores.

License:MIT License


Languages

Language:Python 100.0%