Snake is a classic arcade game where the player controls a snake that moves around the screen. The objective of the game is to eat food items that appear randomly while avoiding collisions with the snake's own body or the game boundaries.
As the snake eats food, it grows in length, making it more challenging to navigate without running into itself. The game ends if the snake collides with its own body or hits the boundaries of the game window.
The player controls the snake's movement using arrow keys or other designated keys. The snake can move in four directions: up, down, left, and right. The goal is to eat as much food as possible and achieve the highest score.
This game was develeped using ChatGPT.
Use the Dockerfile to quickly deploy the game. The image used is python:3.9, exposing the port 8000.
$ sudo docker run -d -p 8000:8000 aramirol/snake:latest
If you prefer, you can use the deployment.yaml file to deploy the game to Kubernetes. This file creates all the necessary components (remember to change the values to fit your environment)
$ kubectl apply -f deployment.yaml
spec:
containers:
- name: tictactoe
image: aramirol/snake:latest
ports:
- containerPort: 8000
See LICENSE to see the full text.
Content type
Image
Digest
sha256:cc5f392e5…
Size
370.8 MB
Last updated
over 3 years ago
docker pull aramirol/snake