To host on GitHub Pages:
git init git add index.html git commit -m "Add Snake game" git branch -M main git remote add origin <your-repo-url> git push -u origin main
Then enable GitHub Pages in repository settings and set site to serve from main branch (root). The game will be available at https://<username>.github.io/<repo>.