The Snake Case

The Snake Case is a Snake game built in PyScript that runs locally in the browser.

Usage

You can run the game by directly opening the HTML file on its own, or run python -m flask run to spin up a local server to visit.

Increase the Game Speed to speed up the game, and try to get the highest score you can!

PyScript Resources

We used the following tutorial for advice on how to create a Snake Game, re-implementing the JavaScript methods in PyScript.

Original Javascript Tutorial

Here are some links we came across in our search for documentation that show examples of PyScript in the wild:

PyScript Explanation

Official PyScript Examples

Javascript Snake Example

PyScript Wordle - Examples using Elements

PyScript File Uploader with Event Listening

PyScript DOM Manipulation examples

Getting Started