Skip to content

TalVilozny/Snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐍 Snake Game

A modern recreation of the classic Snake game built with React.


🎮 Live Demo

🔗 Play Here: https://retrosnakeremake.vercel.app


📖 Overview

This project is a browser-based implementation of the classic Snake game, developed using React, JavaScript, HTML, and CSS.

It focuses on real-time state management, smooth rendering cycles, and clean component structure. The goal was to demonstrate strong frontend fundamentals while keeping the architecture simple and scalable.


✨ Features

  • ⌨️ Arrow key controls
  • 🐍 Dynamic snake movement and growth
  • 🍎 Random food generation
  • 💥 Collision detection
  • 📊 Live score tracking
  • 🔄 Game reset functionality
  • 🎨 Minimal and responsive UI

🧠 Technical Highlights

  • Utilizes React Hooks (useState, useEffect) for game state and timing logic
  • Interval-based game loop implementation
  • Efficient snake array updates for movement and growth
  • Boundary and self-collision detection algorithms
  • Component-based structure for maintainability

🛠 Tech Stack

Technology Usage


React UI & state management JavaScript (ES6+) Game logic HTML5 Structure CSS3 Styling & layout


🚀 Getting Started

Clone the repository:

git clone https://github.com/yourusername/snake-game.git
cd snake-game
npm install
npm start

The app will run locally at:

http://localhost:3000


📌 Future Improvements

  • Difficulty levels (speed scaling)
  • High score persistence (localStorage)
  • Sound effects
  • Smooth animations
  • Mobile swipe support

🎯 Purpose

This project was built to strengthen:

  • React state management skills
  • Real-time UI updates
  • Game logic structuring
  • Performance-conscious rendering

👨‍💻 Author

Tal Vilozny Frontend Developer


⭐ If you like this project, feel free to star the repository!

About

Modern Snake game built with React, JavaScript, HTML, and CSS. This project recreates the classic arcade experience with smooth keyboard controls, real-time score tracking, and a clean, responsive UI. The game logic is fully implemented in React.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors