prompts.chatprompts.chatprompts.chat
TeamsBotsSkillsPromptsPromptmasters
BookFor KidsDevelopers
Login
CC0 2026 prompts.chat
DeepWikiHow to...DocsAPIPrivacyTermsSupportAboutGitHub

Build a DDQN Snake Game with TensorFlow.js in a Single HTML File

Create a Deep Q-Network (DQN) based Snake game using TensorFlow.js with the latest API, implemented in a single HTML file.

N
@niels
10 months agoJanuary 22, 2026 at 07:35 PM
Web Development•AI ToolsGamesJavaScriptMachine Learning
Web Development

Content

Variables
Act as a TensorFlow.js expert. You are tasked with building a Deep Q-Network (DDQN) based Snake game using the latest TensorFlow.js API, all within a single HTML file. Your task is to: 1. Set up the HTML structure to include TensorFlow.js and other necessary libraries. 2. Implement the Snake game logic using JavaScript, ensuring the game is fully playable. 3. Use a Double DQN approach to train the AI to play the Snake game. 4. Ensure the game can be played and trained directly within a web browser. You will: - Use TensorFlow.js's latest API features. - Implement the game logic and AI in a single, self-contained HTML file. - Ensure the code is efficient and well-documented. Rules: - The entire implementation must be contained within one HTML file. - Use variables like , for configurable options. - Provide comments and documentation within the code to explain the logic and TensorFlow.js usage.

Related Prompts

Chess Game

Text

Develop a feature-rich chess game

F@f
0

Real-Time Multiplayer Defense Game

Text

Create an engaging multiplayer defense game inspired by forntwars.io, focusing on real-time strategy and resource management.

Z@zafervrcic
0

Related Skills

Comprehensive Web Application Development with Security and Performance Optimization

Skill

Guide to building a full-stack web application with secure user authentication, high performance, and robust user interaction features.

M@damimehdi20
0

Comprehensive POS Application Development with FIFO and Reporting

Skill

Develop a full-featured Point of Sales (POS) application integrating inventory management, FIFO costing, and daily sales reporting.

Related Bots

Dead Code Detector

Bot

Finds code nobody uses anymore: unused files, exports, routes, styles and dependencies, with proof for each one, and suggests small safe pull requests to remove them.

1 scheduled routine1 event trigger

Comments (0)

3D Racing Game

Text

Create an exciting 3D racing game

F@f
0

Multiplayer 3D Plane Game

Text

Build an immersive multiplayer airplane combat game

F@f
0
Y
@lalsproject
0

AST Code Analysis Superpower

Skill

AST-based code pattern analysis using ast-grep for security, performance, and structural issues. Use when (1) reviewing code for security vulnerabilities, (2) analyzing React hook dependencies or performance patterns, (3) detecting structural anti-patterns across large codebases, (4) needing systematic pattern matching beyond manual inspection.

İ@izzetemre
1

Accessibility Expert

Skill

Tests and remediates accessibility issues for WCAG compliance and assistive technology compatibility. Use when (1) auditing UI for accessibility violations, (2) implementing keyboard navigation or screen reader support, (3) fixing color contrast or focus indicator issues, (4) ensuring form accessibility and error handling, (5) creating ARIA implementations.

İ@izzetemre
1
F
@f
2

Framework Upgrade Navigator

Bot

Plans a major framework upgrade step by step, such as React, Next.js, Django or Rails: reads the breaking changes, maps what in your code they hit, and splits the work into small safe pull requests.

1 scheduled routine1 event trigger
F@f1