Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import openai
- openai.api_key = "apikey"
- # Store player positions
- player_positions = {}
- def generate_dnd_maze():
- text = "Create a playable in which I can navigate the player with (W, A, S, D) 20x40 dungeon maze in ASCII also draw it (Where E is end and S is start) for a Dungeons and Dragons game. Please include components and challenges (such as traps,), and provide a description of the entire scenario."
- completion = openai.ChatCompletion.create(model="gpt-3.5-turbo", messages=[{"role": "user", "content": text}])
- return completion.choices[0].message.content
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement