paralleldrive / sudolang-llm-support

SudoLang LLM Support for VSCode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

There are some missing logic in teach.sudo

coderfengyun opened this issue · comments

      correctAnswers = 0
      incorrectAnswers = 0

      while (correctAnswers < questions.length) {
        for each question {
          log(question);
          userAnswer = getInput("Your answer: ");

          correct => {
            explain("${ emoji } $explanation"):length=compact;
            log("$correctAnswers / $questions.length");
          }
          incorrect => {
            explain("${ emoji } The correct answer is: $question.correctAnswer")
              :length=concise:detail=clear;
          }
        }
      }

In this section, ${correctAnswers} and ${incorrectAnswers} variables are not modified.

It's implied. The AI can infer it. Works in GPT-4.

Great !