Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Nov 1, 2025. It is now read-only.

Baizho/snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Snake game

A browser‑based classic Snake game built as a learning project.

Description

Implements the iconic “Snake” gameplay in a web environment: you control a moving snake that grows by eating items and must avoid colliding with itself or the walls. This project was created for practice and demonstration of core web game development concepts.

Features Implemented

  • Arrow‑key (and/or WASD) control of the snake movement
  • Grid‑based game field with collectible food items
  • Growth of the snake when food is eaten
  • Game over condition when the snake collides with itself or the boundary
  • Score tracking with display of current score
  • Responsive canvas resizing or basic adaptation to browser window (if included)

Tech Stack

  • HTML5 (Canvas)
  • CSS3
  • JavaScript (ES6+)
  • No external game engine — built from scratch for learning purposes

Note

This is a practice/demo/learning project.
The project was created to practise and demonstrate game‑loop architecture, canvas rendering, event handling, collision logic, and responsive UI basics.
No further updates or maintenance are planned — the code is retained here as a finished, archival work for portfolio presentation.

How to Run Locally

  1. Clone the repository:
    git clone https://github.com/YourUsername/SnakeGame‑Web.git
    cd SnakeGame‑Web

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published