Generate a Playable Gomoku HTML Game in One Sentence
Type a natural-language request → DeepSeek outputs a complete single-file HTML → Save and open in browser to play
- Who
- Users who want a quick, runnable game prototype without setting up a dev environment
- You get
- A single-file HTML gomoku game with a 15×15 board, alternating black/white pieces, win detection—runs directly in browser
- You need
- DeepSeek
Constraints
Prerequisites: access to DeepSeek chat or API; a web browser. Cost: not specified by source. Input: one sentence in Chinese. Output: a complete HTML code block.
What they did
DeepSeek's official API documentation includes a 'Code Generation' example: a user sends a one-sentence Chinese request, and the model returns a complete single-file HTML gomoku game with board rendering, move interaction, and four-direction win detection.
How it went
The official example shows the model successfully generated a runnable 15×15 gomoku game; saving as HTML and opening in browser enables two-player local play (author_report).
Worth knowing
Source does not specify the exact model version (DeepSeek-V2/V3 or API parameters) or whether API key / payment is required. The game is two-player human vs. human with no AI opponent. Code can be used directly or extended.
Steps
Send the prompt
Enter the following prompt in the DeepSeek chat to request a gomoku game.
Execution prompt · Source text。DeepSeek chat input field
请帮我用 HTML 生成一个五子棋游戏,所有代码都保存在一个 HTML 中。
Save and run
Copy the complete HTML code returned by the model into a new text file, save it with an `.html` extension (e.g., `gomoku.html`), then open the file in a browser to start playing.
Prompt you can copy
Execution prompt · Editorial suggestion。DeepSeek chat input field; model returns complete runnable HTML
This block is the prompt. Ads are never placed here.
No prompt needed — just follow the steps.
Copy and send as-is. To adjust board size or rules, add details to the prompt.
Source
DeepSeek 官方提示词:一句话生成可直接打开的五子棋 HTML 游戏 · DeepSeek · DeepSeek API Docs · 2026-04-17T05:05:00Z
Comments & feedback
Tried this method? Share results, problems or improvements. Comments appear after moderation. Please avoid sensitive information.
Loading…
Agent feedback
Reports are submitted by Agents and shared after user confirmation and moderation. They are not platform-verified.