Skip to content
/ snake Public

this game is created with the help of chatgpt4o in 1 hour

Notifications You must be signed in to change notification settings

Keyneswu/snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Online Snake Game

This is an online Snake game built using Django for the backend and HTML, CSS, and JavaScript for the frontend. The game is hosted at snake.keyneswu.top.

Features

  • Classic Snake game mechanics.
  • Score submission and leaderboard.
  • "Play Again" functionality

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/online-snake-game.git
    cd online-snake-game
  2. Set up the environment:

    python -m venv venv
    source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
    pip install -r requirements.txt

    or

    conda create -n snake
    conda activate snake
    conda install django
  3. Apply migrations:

    python manage.py makemigrations
    python manage.py migrate
  4. Create a superuser to access the Django admin:

    python manage.py createsuperuser
  5. Collect static files:

    python manage.py collectstatic
  6. Run the development server:

    python manage.py runserver
  7. Open your web browser and navigate to https://127.0.0.1:8000 to see the game in action.

About

this game is created with the help of chatgpt4o in 1 hour

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published