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

10.3: Text-to-Speech with p5.Speech - Programming with Text

10.2: Chatbots with RiveScript - Programming with Text

Coding Challenge #71: Minesweeper

Billionaire's WARNING: I'm SELLING. The Crash Is Already Here!

Zig 2026: No-AI Policy, $670K Foundation, Left GitHub & Why Zig Isnāt 1.0 - Andrew Kelley Explains

Sheās 12. She Sings Aretha Franklin⦠Until Simon TELLS Her to Do It Acapella! š³

Spotify Top Pop Hits 2026 š§ Bruno Mars, Lady Gaga, Taylor Swift, Charlie Puth, Ed Sheeran,The Weeknd

Coding Challenge #99: Neural Network Color Predictor

I Outsmarted Pro Car Thieves

The Strange Math That Predicts (Almost) Anything

Coding Challenge 188: Voice Chatbot

8 Hours - Relaxing Music with Sea Turtles in Hawaii | Great Escapes

40Hz Binaural Gamma Waves - Ultra Deep Concentration

SUMMER DEEP HOUSE Musics Mix 2026 ā« Bruno Mars, Lady Gaga,Dua Lipa, Adele,Ed Sheeran, The Weeknd #02

When Math Isnāt Based in Reality

Coding Challenge 73: Acrostic Poem Generator

What to teach when AI writes the code | Rainer Stropek | TEDxLinz

