◀ VibeCruiser

Snake game

A free snake game — play it in your browser, no install. Snake in TypeScript with a pathfinding autopilot: A*, safe A* and a Hamiltonian cycle with shortcuts that always fills the board. Benchmarked, tested, mobile-friendly.

by @shashank11yadav · shashank11yadav/Snake-game on GitHubLANG TypeScriptHOSTED ON SHASHANK11YADAV.GITHUB.IOUPDATED 15 Oct 2026

Vote and save it — free account with email or sign in with GitHub

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

Best with a keyboard. Controls: Start, resume: space or Enter · Steer: arrow keys or W A S D · Pause: p or Esc

▶ Play full screen ▲ Vote: free account with email ▲ Or sign in with GitHub

GitHub may ask you to sign in, then to let VibeCruiser “Verify your GitHub identity” and “Act on your behalf”. We only read your profile and email, and never post anything.

Open the live demo Source on GitHub

From the README

Snake in TypeScript with an autopilot that plans its moves with A\*, checks them against a "can I still reach my tail" safety test, and can fill the whole board by following a Hamiltonian cycle with shortcuts.

Steering while the autopilot is driving hands control back to you. The game also pauses by itself when the tab is hidden or the window loses focus.

The settings panel picks the autopilot strategy, toggles the planned-path overlay, and sets walls or wrap-around edges, board size (10, 16 or 20 cells a side) and speed (6 to 40 moves a second).

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 →