Prompt
0 copies · 0 said it worked
Build a single-file DDQN Snake game in TensorFlow.js
Asks the model to act as a TensorFlow.js expert and build a playable Snake game in one HTML file, training a Double DQN agent to play it in the browser with configurable canvas variables.
People use this for
- tensorflowjs snake game prompt
- double dqn snake browser code
- single file snake reinforcement learning
- deep q network snake game javascript
- train snake ai in browser
Imported on Nov 29, 2026 from Build a DDQN Snake Game with TensorFlow.js in a Single HTML File . License observed at the source on Nov 29, 2026: CC0.
Are you the author?Claim this profileRequest removal
Fill in the variables
Prompt
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 {{canvaswidth}}, {{canvasheight}} for configurable options. - Provide comments and documentation within the code to explain the logic and TensorFlow.js usage.
No result recorded for this import yet. Tried it? File a report so the next person knows how it went.
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${canvasWidth:400{canvaswidth}},${canvasHeight:400{canvasheight}} for configurable options. - Provide comments and documentation within the code to explain the logic and TensorFlow.js usage.
Tried it
Structured reports from people who ran this prompt. They roll up into the per-model badges above.
No one has filed a report yet. Try the prompt and be the first.
Related prompts
- Claude api: reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming,…
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any fo
Coding · @anthropic
- Autonomous coding agent that builds a verified app-builder harness
Master system prompt that directs an autonomous senior Python engineer to build a spec-driven, evidence-traced app-builder harness milestone by milestone without asking questions.
Coding · @mahfuzahmedog
- Write work reports from git and coding-agent sessions
Agent skill that gathers a user's work for a period and folder scope from git, coding-agent sessions and other sources, then drafts, previews and saves a standup, weekly, monthly or changelog report.
Coding · @subashdhamee
- Orchestrate parallel coding agents in git worktrees via Herdr
Playbook skill for splitting a project into stages, running one coding agent per git worktree and Herdr pane, handing off file-based briefs, monitoring state, and reviewing and merging results.
Coding · @ferrumsidereum
- Find knowledge concentration risk in a Git repo's history
Analyzes Git history to show per-module bus factor, single-knower hot spots, and duplicate identities, then produces a knowledge-handover plan for the team.
Coding · @f
License: CC0v2 · updated Nov 30, 2026 · first published Nov 29, 2026
Comments
No comments yet. If you tried this prompt, say how it went.