Beispiel #1
0
        private async void SubmitDoubleLie(Fibbage3Player self)
        {
            _lieLock = true;

            var prompt = CleanPromptForEntry(self.Question);

            LogInfo($"Asking GPT-3 for double lie in response to \"{prompt}\".");

            var lie = await ProvideDoubleLie(prompt, self.AnswerDelim, self.MaxLength);

            LogInfo($"Submitting double lie \"{lie}\".");

            JackboxClient.SubmitLie(lie);
        }
Beispiel #2
0
        private async void SubmitTruth(Fibbage3Player self)
        {
            _truthLock = true;

            var prompt = CleanPromptForEntry(JackboxClient.GameState.Room.Question);

            LogInfo("Asking GPT-3 to choose truth.");

            var choices = self.LieChoices;
            var truth   = await ProvideTruth(prompt, choices);

            LogInfo($"Submitting truth {truth}.");

            JackboxClient.ChooseTruth(truth, choices[truth].Text);
        }