https://github.com/anishpasupuleti/snake-game

https://github.com/anishpasupuleti/snake-game

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (7.4%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: AnishPasupuleti
  • Language: Python
  • Default Branch: main
  • Size: 74.2 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 1 year ago · Last pushed 12 months ago
Metadata Files
Readme

README.md

🐍 Snake Web Arcade

An enhanced browser-based Snake Game with modern UI, Google login, user profiles, and leaderboard — built using Flask, JavaScript, and HTML5 Canvas.

🔥 Features

  • 🎮 Playable Snake game in the browser
  • 👤 Google-based Login & Signup
  • 🧾 User profiles with high score, games played, and total time
  • 🏆 Global leaderboard of top 100 players
  • 📈 Score history chart using Chart.js
  • ☁️ All user data stored in JSON (can later connect to DB)

🚀 Tech Stack

  • Frontend: HTML5, CSS, JavaScript (Canvas, Chart.js)
  • Backend: Python Flask
  • Auth: Google OAuth via Flask-Dance
  • Storage: users.json file (easy to extend to DB)

🛠️ Setup Instructions

  1. Clone the repository: ```bash git clone https://github.com/AnishPasupuleti/snake-game.git cd snake-game

🛠️ Setup Instructions

📦 Install dependencies:

bash pip install -r requirements.txt python app.py

🔐 Configure Google OAuth:
Go to Google Cloud Console
Create OAuth 2.0 Client ID credentials
Set redirect URI: http://localhost:5000/login/google/authorized

Add your client_id and client_secret in app.py file


🧠 How It Works
🕹️ Frontend renders the game using JavaScript Canvas
🧠 Backend tracks users and scores via Google login
📤 Score data is sent from browser to Flask /update_score API
🗃️ users.json holds all player history, high scores, and stats
📈 Dashboard visualizes your stats with a chart and play history


📌 Future Enhancements
🎯 Power-ups, speed modes, multiplayer support
🌐 Switch to Firebase/PostgreSQL for cloud storage
📊 In-depth analytics and personalized performance trends
🧠 AI snake demo mode

Owner

  • Name: Anish Pasupuleti
  • Login: AnishPasupuleti
  • Kind: user

BTech CSE @ Anurag | Full Stack Dev (MERN) | SIH College Level Finalist & OpenCV Winner 🏆 | LeetCode Top 15% | Building AI + Cloud Projects ☁️⚡

GitHub Events

Total
  • Push event: 38
  • Create event: 1
Last Year
  • Push event: 38
  • Create event: 1