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許可獲得許可。