For the benefit of interested parties, I’m open-sourcing (under the WTFPL) my ham-fisted first-semester CompSci mini-project, a deliberately antagonistic chatbot called AntagoBot.
You can grab the source on GitHub here, although the code all lives in one Java file. The algorithm for its conversations is extremely simple: ask rude questions, keep pressing until you get a yes/no answer, and then move on to another rude question.
AntagoBot is not:
- an example of “good Java”1;
- a particularly good chatbot;
- a good person. He’s fecking evil.
Note that in my mind, the only “good Java” is no Java, because Java is a horrible, patent-encumbered, cumbersome and inconsistent mess.↩