ChatGPT自己生成ChatGPT的prompt。
LE: 我想编一个高级一点、图形界面英文打字练习游戏,英文单词会掉下来那种,有炮弹的那种,动感一点。想用python+pygame编。请问我应该如何问ChatGPT或使用怎样的prompt才能生成比较有效的程序,我不需要它教怎么一步步编,我只需要整个程序。能给我一个相关prompt的例子吗?这个prompt尽量描述得详细一点,字数越过500个。”
GPT4:
当然可以!这是一个更详细的prompt,要求提供一个完整的Python和Pygame代码来创建一个高级英文打字练习游戏:
"Please provide a complete Python and Pygame code for creating an advanced and engaging English typing practice game with a graphical user interface. In this game, English words should fall from the top of the screen, and the player must type the correct word to shoot them down with projectiles. The game should offer an exciting experience, with increasing difficulty as the player progresses. The code should include all necessary components and features, such as rendering falling words, handling player input, detecting collisions between words and projectiles, scoring, and increasing difficulty over time by adjusting word falling speed, the frequency of new words appearing, and the complexity of the words themselves. Additionally, please include comments in the code to explain the functionality of various sections and how they contribute to the overall game mechanics, as well as any suggestions for customization or improvement."
这个prompt详细说明了您希望获得的代码应该包含的所有功能,包括动态和吸引力,并随着玩家的进步而逐渐增加难度。它还要求提供注释以解释代码中各个部分的功能以及它们如何共同构成游戏机制,以及对于定制或改进的建议。
LE: Please provide a complete Python and Pygame code for creating an advanced and engaging English typing practice game with a graphical user interface. In this game, English words should fall from the top of the screen, and the player must type the correct word to shoot them down with projectiles. The game should offer an exciting experience, with increasing difficulty as the player progresses. The code should include all necessary components and features, such as rendering falling words, handling player input, detecting collisions between words and projectiles, scoring, and increasing difficulty over time by adjusting word falling speed, the frequency of new words appearing, and the complexity of the words themselves. Additionally, please include comments in the code to explain the functionality of various sections and how they contribute to the overall game mechanics, as well as any suggestions for customization or improvement.
GPT-4:
.....
发布于 日本
