Snake your way

into GitHub Codespaces

(use the Space key to navigate through all slides)

Follow these steps to run this project on the browser.

Go to the following URL:
https://github.com/andreagalle/snake-autoplay

Not yet a community member?

Signup on GitHub and navigate to the repo andreagalle/snake-autoplay

click on the button:
Use this template > Open in a codespace

Open Codespace

This open a browser-based IDE (vscode) in a new tab.

from the CLI below

source the hidden .env file
then launch the setup script


							source .env
							setup
						

this install the necessary dependecies
basically pygame and pygbag modules

or simply lists them all
if the setup script was already run

finally launch the deploy script to run a first test
and click on the Open in Browser pop-up


							deploy
						

or simply visit the URL where the game was deployed

Open Codespace

replacing the domain name accordingly, with the one randomly chosen by GitHub, the default port is 8000

Open Codespace

(the highlighted string above)

... the result should look like THIS!

turn off the Codespace not to waste useful resources

Open Codespace

go to the Codespaces tab (GitHub Navigation Bar)
search for the running Codespace and stop it

Open Codespace

This was crafted with

A Framework created by Hakim El Hattab and contributors
to make stunning HTML presentations