◀ VibeCruiser

snake game

A free snake game — play it in your browser, no install. This is a simple implementation of the classic Snake game using HTML, CSS, and JavaScript. The game is played on a canvas element and controlled using the arrow keys on the keyboard.

by @mohdriyaan · mohdriyaan/snake-game on GitHubLANG JavaScript★ 4HOSTED ON MOHDRIYAAN.GITHUB.IOUPDATED 8 Apr 2023

Vote and save it — continue with GitHub or sign in free

Made this, @mohdriyaan? See how many people played it → or use email

Best with a keyboard. Controls: The game will start automatically, and you can control the snake using the…

▶ Play full screen ▲ Vote with GitHub ▲ Vote with email

GitHub asks to share your profile and email with us. We never post anything.

Open the live demo Source on GitHub

From the README

This is a simple implementation of the classic Snake game using HTML, CSS, and JavaScript. The game is played on a canvas element and controlled using the arrow keys on the keyboard.

To play the game, simply open the link Snake-Game in your web browser. The game will start automatically, and you can control the snake using the arrow keys on your keyboard.

The objective of the game is to eat as many apples as possible without colliding with the walls or the snake's own body. As the snake eats more apples, it will grow in length and move faster.

Read the full README on GitHub →

Built something like this? Submit your vibe — free account, takes a minute. How listing works.

More like this

More snake games →

Made this?

Claim it: create a free account, then press CLAIM THIS in the cruiser. Put the badge below in your README or on your demo page first; that link is how we know it's yours.

Your project is on the cruise, loaded live from your own site. Put the badge in your README or on the demo page: it shows your live play count, it links back to this page, and everyone who lands here is one click from running the real thing.

On VibeCruiser

How listing, the badge and claiming work →