Coding Challenge #79: Number Guessing Chatbot

In this coding challenge I attempt to create a chatbot that plays a number guessing game. I use the RiveScript along the JavaScript library p5.js. Code: https://thecodingtrain.com/challenges... šŸ•¹ļø p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/s... šŸŽ„ Previous video:    • CodingĀ ChallengeĀ #78:Ā SimpleĀ ParticleĀ SystemĀ Ā  šŸŽ„ Next video:    • CodingĀ ChallengeĀ #80:Ā VoiceĀ ChatbotĀ withĀ p...Ā Ā  šŸŽ„ All videos:    • CodingĀ ChallengesĀ Ā  References: šŸ”— RiveScript: https://www.rivescript.com/ šŸ”— jQuery: https://jquery.com/ šŸ”— AIML on Wikipedia: https://en.wikipedia.org/wiki/Artific... šŸ”— RiveScript on Github: https://github.com/aichaos/rivescript-js Videos: šŸŽ„ Programming with Text:    • ProgrammingĀ withĀ TextĀ -Ā AllĀ VideosĀ Ā  šŸŽ„ Chatbots with RiveScript - Programming with Text:    • 10.2:Ā ChatbotsĀ withĀ RiveScriptĀ -Ā Programmi...Ā Ā  šŸ”“ Coding Train Live 103:    • CodingĀ TrainĀ LiveĀ 103:Ā MoreĀ onĀ JavaScriptĀ ...Ā Ā  Related Coding Challenges: šŸš‚ #37 Diastic Machine:    • CodingĀ ChallengeĀ #37:Ā DiasticĀ MachineĀ Ā  šŸš‚ #39 Mad Libs Generator:    • CodingĀ ChallengeĀ #39:Ā MadĀ LibsĀ GeneratorĀ Ā  šŸš‚ #80 Voice Chatbot with p5.Speech:    • CodingĀ ChallengeĀ #80:Ā VoiceĀ ChatbotĀ withĀ p...Ā Ā  Timestamps: 0:00 Introduce the coding challenge 0:34 Set up p5.js ketch 0:54 Reference RiveScript resources 1:13 Explain file structure 1:34 Create a RiveScript file 2:00 Initialize a number 2:22 Add a trigger to display a message 2:55 Create chat interface with HTML elements 4:38 Target HTML elements 5:13 Consider text input 6:05 Reference RiveScript for JavaScript 7:48 Fix typo 8:05 Debug console error 8:38 Import jQuery 9:50 Follow RiveScript documentation 10:20 Create a reply 11:00 Refine the bot logic 11:08 Reply to a numerical input 12:40 Check RiveScript syntax for conditionals 13:53 Test the bot 14:50 Pick a random number 15:35 Send random number to the bot 16:32 Set answer number in the bot 17:07 Test program 17:40 Debug the bot logic 18:02 Fix RiveScript syntax to set a variable 18:49 Explain shortcomings 19:18 Mention RiveScript sequencing 20:20 Conclude the coding challenge Editing by Mathieu Blanchette Animations by Jason Heglund Music from Epidemic Sound šŸš‚ Website: http://thecodingtrain.com/ šŸ‘¾ Share Your Creation! https://thecodingtrain.com/guides/pas... 🚩 Suggest Topics: https://github.com/CodingTrain/Sugges... šŸ’” GitHub: https://github.com/CodingTrain šŸ’¬ Discord: https://thecodingtrain.com/discord šŸ’– Membership: http://youtube.com/thecodingtrain/join šŸ›’ Store: https://standard.tv/codingtrain šŸ–‹ļø Twitter: Ā Ā /Ā thecodingtrainĀ Ā  šŸ“ø Instagram: Ā Ā /Ā the.coding.trainĀ Ā  šŸŽ„ Coding Challenges:    • CodingĀ ChallengesĀ Ā  šŸŽ„ Intro to Programming:    • StartĀ learningĀ here!Ā Ā  šŸ”— p5.js: https://p5js.org šŸ”— p5.js Web Editor: https://editor.p5js.org/ šŸ”— Processing: https://processing.org šŸ“„ Code of Conduct: https://github.com/CodingTrain/Code-o... This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecod... #patternmatching #chatbot #artificialintelligence #textgenerator #javascript #p5js #rivescript