TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: A web decision game 99% coded by GPT4. Uses agent to decide win/loss

2 点作者 adoos大约 2 年前
Yeah... so I know some software development concepts well I haven&#x27;t written any code in 10 years, so like half the time was just getting a development setup. At first it suggested PyCharm and honestly it wasted a lot of time. Eventually I got VS Code and GPT just seems to understand it so much better.<p>The real secret to getting good responses with GPT-4 during this I found is to restart the conversation fresh with a complete description of what you need (2-3 paragraphs of detail is great) and the rest as code.<p>[detailed description of what you need, make sure it&#x27;s detailed and specific add examples if possible] #### [insert all the code, the more you can fit the better]<p>That first code block it gives you back on the first output is the cleanest by far. If there is an error and you submit it back in the same chat conversation, it just gets diluted&#x2F;saturated over time, hallucinations go up etc.<p>So if there is a bug rather than continue in the same convo, repeat this process in a brand new conversation. Each time it gives a much cleaner, fresher look at the code and goals needed. If your codeblock is really small then this isn&#x27;t so important, but I&#x27;m trying to maximize the amount of code per prompt for best responses.<p>I also make sure to split files by concerns so they don&#x27;t get too big for the prompt window otherwise it&#x27;s annoying.<p>####<p>And lastly the other interesting thing about this project is this simulates an Agent loop where it is constantly trying to determine if the player won or lost, decide what the next most cohesive step is based on the human feedback (click emoji) and looping it. Actually that was my main interest for the project and I just wanted to get something published as a secondary goal. Most of my time was probably spent playing with the prompt and trying to to see if I could get it to determine if the goal was achieved but its actually a hard problem and I have some cool ideas for the next project.

2 条评论

RiadEtm大约 2 年前
I won with my first game with my first move but I didn&#x27;t really understand what happened. I think this might be caused by the process time that reinforce this feeling of &quot;what&#x27;s actually happening&quot;. Maybe a bit more information on the front page could help the player understanding what&#x27;s happening.
JoeOfTexas大约 2 年前
I won with 1 move left, but I have no idea what was happening. Still don&#x27;t.