Skip to content

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.

License

Notifications You must be signed in to change notification settings

dockersamples/snake-game-tensorflow-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎯 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.

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.5%
  • HTML 8.2%
  • CSS 7.8%
  • Dockerfile 0.5%