This project demonstrates an AI-powered Snake game with TensorFlow.js. Game allowing users to either play manually or let the AI control the snake.


- index.html - Main webpage hosting the game interface & loads library
- ai.js - AI model integration and decision-making
- script.js - Game logic and user interactions
- style.css - Theme and color settings
- Dockerfile - File to build the container image
git clone https://github.com/dockersamples/snake-game-tensorflow-docker
cd snake-game-tensorflow-docker
Bring up the application
docker compose up -d
Open your web browser and access the following URL:
http://localhost:8080
This project is licensed under the Apache 2.0 License.
Since this project is intended to support a specific use case guide, contributions are limited to bug fixes or security issues. If you have a question, feel free to open an issue!
If you have any questions, please contact #docs
on the Docker Community Slack.