تخطَّ إلى المحتوى

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.

المحتوى

جهّز البرومبت لشغلك

أضف بياناتك في الخانات، ثم راجع نص البرومبت قبل استخدامه.

نص البرومبت بعد التخصيص

هذا هو النص الذي ستنسخه أو تستخدمه. يتغيّر مباشرة مع بياناتك.

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 400, 400 for configurable options. - Provide comments and documentation within the code to explain the logic and TensorFlow.js usage.

برومبتات ذات صلة

Advanced Sales Funnel App with React Flow

نص

Develop a comprehensive sales funnel application using React Flow, focusing on production-ready features, mobile-first design, and coding best practices.

H@community
0

Fantasy Dataset Creator for Machine Learning

نص

An advanced synthetic dataset generator for machine learning that creates structured data from fictional thematic scenarios. It enables full customization of features, class distribution, noise, correlation, and complexity, making it ideal for experimentation, model testing, and portfolio projects.

H@community
0

WEB Product Architect

نص

This prompt helps AI create a reusable enterprise website template system, not just a single website page. It defines how to build a scalable, brand-flexible, and maintainable frontend-backend framework that different companies can quickly adapt, customize, and extend for long-term use.

H@community
0

Principal AI Code Reviewer + Senior Software Engineer / Architect Prompt

نص

Enterprise-level AI code reviewer prompt combining Senior Engineer and Architect rules with SOLID enforcement, OWASP security checks, performance analysis, and strict architectural rigor. Integrates Context7 as single source of truth and Sequential Thinking for structured, high-precision technical evaluation.

H@community
0

Modify Front-End Webpage with Codex and Image Input

نص

Use Codex to modify the front-end of your current project's index.html using the provided image as a reference.

H@community
0

Frontend Developer Agent Role

نص

Build responsive, accessible, and performant web interfaces using React, Vue, Angular, and modern CSS.

H@community
0

Astro.js

نص

Astro.js Prompts

H@community
0

Responsive Interface Redesign Board

صورة

Convert the front-end redesign brief into a polished responsive interface presentation in a Jeddah courtyard.

H@community
0

Make UI/UX better of an already Created Application

نص

Generate a comprehensive, actionable development plan to enhance the existing web application.

H@community
0

AI voice assistant

صوت

This prompt is designed for an AI receptionist (e.g., via Vapi, Bland AI, or a website chatbot) for **your website**. It focuses on their core value proposition: **Rigorous, reproducible, and non-negotiable analytical quality.**

H@community
0

The Lovelyline

نص

Act as an expert brand copywriter and life coach. I am launching a brand called 'Lovely Line'. The core of the brand is a minimalist line-art character that shares daily philosophical thoughts, storytelling, and life-coaching insights. Write a warm, engaging, and simple introductory post (for Instagram/LinkedIn) announcing the launch of 'Lovely Line'. The tone should be calming, insightful, and accessible, emphasizing how simplicity can convey profound life lessons.

H@community
0

Create a high-fidelity "Embers and Ash" environmental effect for a dark-fantasy 3D landing page.

نص

Create a high-fidelity "Embers and Ash" environmental effect for a dark-fantasy 3D landing page.

H@community
0

التعليقات