Skip to content

Files

Latest commit

6818673 · Feb 28, 2025

History

History
69 lines (41 loc) · 1.7 KB

README.md

File metadata and controls

69 lines (41 loc) · 1.7 KB

🎯 AI Snake Game with Docker & TensorFlow.js

  1. README Content
  2. License
  3. Contributing

Overview

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.

Project Structure

  • 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

Setup Instructions

1. Clone the repository

git clone https://github.com/dockersamples/snake-game-tensorflow-docker

2. Navigate to the project directory:

cd snake-game-tensorflow-docker

3. Using Docker Compose

Bring up the application

docker compose up -d 

4. Access the application

Open your web browser and access the following URL:

http://localhost:8080

License

This project is licensed under the Apache 2.0 License.

Contributing

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.