Lab 14: Chatbot
- Let's make a character for a game. (You can choose the game,
but my example is the bartender.)
- Startup a java project, and make the simplest chatbot:
- Make it loop until the user types stop.
- In the loop make it type hello.
- Make it respond to 4 particular commands. (I did, I'll
have a beer, wine please, where's the loo, and can
I have a burger?)
- Variabilize these things. (E.g. I'll have a(n) ?x)
- Give it a wildcard response. (I did, sorry, could you say that
again.)
- How realistic can you make it?