ScratchData LogoScratchData
Back to RoboSquid's profile

Getting Unstuck Day 16 - The ChatDuck5000

RORoboSquid•Created July 20, 2018
Getting Unstuck Day 16 - The ChatDuck5000
5
0
25 views
View on Scratch

Instructions

Getting Unstuck Day 16 Click the green flag. Ask your questions of the great duck, o mortal.

Description

This project uses the stringToWords block by @jsh from his Visual Editor of a few days ago: https://scratch.mit.edu/projects/236732850/ Thanks! HINT - you don't have to remix to reuse - the backpack will carry items between projects if you're working online (look at the bottom of the editor). Remember to credit those who help you. The duck splits the words of the question and uses the first word - probably the question word. It looks in a list Q for this word and if it's there it uses a corresponding reply. With more time I would extend the code to check the whole sentence to allow it to scan for trigger words like Orange or Quack and create a response. You can see the lists used Q and A - dive in and remix to add some more replies. The trigger word (if first word in the question) will result in the reply. The last entry in A is the response if no match is found and should always be the last item.

Project Details

Project ID236932571
CreatedJuly 20, 2018
Last ModifiedJuly 20, 2018
SharedJuly 20, 2018
Visibilityvisible
CommentsAllowed