adventure game ai
1.0.0
Adventure Game Generator是一种基于文本的游戏创建工具,可让您使用OpenAI的力量来生成自己的互动冒险游戏。该项目依靠AI功能诱因库来生成游戏内容并处理玩家选择。
该项目已用gpt3.5-turbo测试,并有望通过gpt4模型返回更好的结果。
还有更多!探索游戏以发现所有功能。
gpt3.5-turbo的混淆(例如: inventory和location ) 示范:

通过调试模式进行审议:

git clone https://github.com/clad3815/adventure-game-ai.gitnpm install确保安装了AI功能助手,并使用OpenAI API键配置。
编辑game.js文件以更改AI功能助手路径
node game.js请按照提示自定义游戏并创建角色。您也可以在提示时按Enter来使用默认设置。
玩生成的游戏并享受冒险!
要激活game.js中的调试模式和AI调试模式。
在项目目录中找到game.js文件。
在您的首选代码编辑器中打开game.js文件。
找到以下代码行:
const enableDebug = false ; // Set to true to enable debug mode
const enableAIDebug = false ; // Set to true to enable debug mode for AI request/answer const enableDebug = true ; // Set to true to enable debug mode const enableAIDebug = true ; // Set to true to enable debug mode for AI request/answer 欢迎捐款!如果您想添加更多功能,改进现有代码或修复错误,请随时提交拉动请求。
该项目已根据MIT许可获得许可。