hto-projects / friendivia

An online party game where participants have to answer questions about themselves, and then try to guess their friends' answers to the same questions.
https://friendivia.com/
MIT License
1 stars 4 forks source link

Adding AI game mode #358

Open tylerbordeaux opened 1 year ago

matandon commented 1 year ago

This may require further testing, but with chatGPT this prompt has been giving me consistent results, in the format of our already existing question database. the only slightly variable thing was whether it included intro/ending text to the response, though this may not happen while using the API. if it does though, we could likely just trim the results. additionally, I specified key words of funny and interesting, but we may want to make these customizable as well? Doing so could introduce more variability in the response.

prompt: generate a typescript array (named AIquestions) of funny and interesting icebreaker questions centered around a theme of halloween, in the format {text: string; quizText: string; fakeAnswers: string[ ];}. the text is the question you come up with (a generic example would be: What is your favorite movie?), the quizText would be formatted when asked about someone (a generic example would be: What is 's favorite movie?), and the fakeAnswers would be four possible answers to the question being asked, stored as a list (a generic example would be [The Godfather, Despicable Me, Into the Spiderverse, Star Wars: A New Hope]). do so without any intro or ending text, i only want code.