# Snake by Patrick Gillespie — upstream and integration notice

Source review and integration: 2026-09-14.

- Original game: **JavaScript Snake** by Patrick Gillespie (`patorjk`) and repository contributors.
- Repository: https://github.com/patorjk/JavaScript-Snake
- Fixed source revision: `c2f26f9b3aab4c0e14fb54a0213089815c0673af` (2026-07-25).
- License: MIT; Patrick Gillespie's original copyright and permission text is preserved as `LICENSE`.
- This is the existing DOM-based single-player game, not Google Snake, Snake.io, Slither.io, or a multiplayer implementation.

## Included runtime and assets

This static edition contains the original `snake.js`, `init.js`, HTML, shared CSS and Patrick Gillespie's default Main Theme. The two tiny texture files `snakeblock.png` and `deadblock.png` trace through the repository's file-renaming history to Patrick Gillespie's first commit (`54dee48`). No audio, third-party font or runtime library is required. Other contributor themes, their images, favicon and the AI-example page are not distributed in this edition.

The complete original game logic is retained: its existing difficulty modes, snake movement, food/growth, high score, pause, death/restart, keyboard controls and on-screen touch pad. No new game mode was written.

## Minimal integration changes

1. Select the existing default Main Theme only and hide the single-option theme picker, avoiding unverified extra assets and broken upstream theme-relative paths.
2. Remove a commented-out Google Analytics sample and the excluded favicon link; no publisher analytics account is reused.
3. Namespace high-score storage as `playlane:snake:highScore` and preserve original author/source links.
4. Two old generic z-index scanning helpers carried attribution to a 2007 third-party blog whose license was not established. Replace those helper bodies with an independently expressed computed-style maximum calculation; snake movement, scoring and difficulty are unchanged.
5. Add the independent Playlane document title, noindex metadata and shared `/play/bridge.js`.

The files run directly; Parcel and package-install hooks were not executed. `getBoardState()` and the existing screen controls remain available to verify real input in the release QA. Source admission is not itself a claim of device or production test success.

Primary evidence:

- MIT: https://github.com/patorjk/JavaScript-Snake/blob/c2f26f9b3aab4c0e14fb54a0213089815c0673af/LICENSE
- Original game and authorship: https://github.com/patorjk/JavaScript-Snake/blob/c2f26f9b3aab4c0e14fb54a0213089815c0673af/README.md
- Original image introduction: https://github.com/patorjk/JavaScript-Snake/commit/54dee48
- Current default theme: https://github.com/patorjk/JavaScript-Snake/blob/c2f26f9b3aab4c0e14fb54a0213089815c0673af/src/css/main-snake.css

Playlane's integration changes are provided under the same MIT terms; upstream notices remain intact.
