Wordle clone game in Code.org not validating user guess - Stack Overflow

So, for some reason the user input is the randomWord, but it keeps saying it is incorrect, and I don�

So, for some reason the user input is the randomWord, but it keeps saying it is incorrect, and I don't know how to fix it. Please help, thx!

Here is the link: [][1]

The error is happening in the checkIfCorrect function with the for loop.

So, for some reason the user input is the randomWord, but it keeps saying it is incorrect, and I don't know how to fix it. Please help, thx!

Here is the link: [https://studio.code./projects/applab/mbsiP3rgVMmRJJGlvw0VRtIKqa2jiwtTPB8SRYcS9vU][1]

The error is happening in the checkIfCorrect function with the for loop.

Share Improve this question edited Mar 3 at 18:18 Alex Stringer asked Mar 3 at 18:16 Alex StringerAlex Stringer 11 bronze badge 1
  • You should post the relevant code in the question. See How to Ask – Tangentially Perpendicular Commented Mar 3 at 18:27
Add a comment  | 

1 Answer 1

Reset to default 0

The userGuess variable is not getting set to the user inputs as the program runs. Add in a line before you call checkIfCorrect to update the variable before you pass it to the function..

userGuess = getTest("userInput");

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745078317a4609968.html

相关推荐

  • Wordle clone game in Code.org not validating user guess - Stack Overflow

    So, for some reason the user input is the randomWord, but it keeps saying it is incorrect, and I don�

    14小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信