[pandorabots-general] Blackjack game for AIML
Square Bear
steve at square-bear.co.uk
Mon May 1 05:50:49 PDT 2006
To celebrate Pandorabots reaching 300 million responses, I've coded a
blackjack game in AIML. Just upload it to your bot, re-publish and say
"Blackjack" to begin playing. It's a little complicated given the fact the
AIML cannot do addition, subtraction or even count and so was a bit of a
challenge to code. However, I've commented every category if you wish to see
how the code works.
The only thing you may want to customise is the amount the player starts off
with in the bank. To do this change <set name="coins">50</set> in the first
category to any number you like up to a maximum of 250.
It's currently a work in progress, so is subject to change:
http://www.square-bear.co.uk/aiml/blackjack.aiml
I think I've ironed out any bugs but if you spot any please let me know. Any
feedback or suggestions greatfully accepted.
Enjoy!
More information about the pandorabots-general
mailing list