Wordplay

Post ideas for the next release!

Wordplay

Postby SoulLeader » November 30th, 2014, 9:19 pm

Hello
I found a good game for chat robot but this don't work.
AIML file: http://users.atw.hu/gabor01/FlashChat_v453/chat/bot/programe/aiml/word-game.aiml
I found this in tufat flashchat. I don't know that this will help: http://users.atw.hu/gabor01/index.php?dir=FlashChat_v453%2Fchat%2Fbot%2Fprograme%2F

Please add this function. This is good game. :D
Thank you in advance. :)
SoulLeader
Regular Member
 
Posts: 28
Joined: November 25th, 2014, 4:47 pm

Re: Wordplay

Postby GeekCaveCreations » November 30th, 2014, 11:59 pm

What you found was Program E (or a version of it), which is another PHP-based AIML interpreter/chatbot engine. I used to use Program E many years ago, before I found Program O, but it had an "echo bug" that at the time was impossible for me to find/fix.

I haven't yet looked at the AIML file, but I'll try to do so later this evening. Then I'll be able to see why it doesn't work.
Comforting the disturbed, and disturbing the comfortable
Chat with Morti
User avatar
GeekCaveCreations
Safe, Reliable Insanity, Since 1961
 
Posts: 1115
Joined: April 18th, 2011, 10:52 pm
Location: Nevada, USA

Re: Wordplay

Postby SoulLeader » December 1st, 2014, 10:53 am

I don't know.
I will upload here the bot script.
When I open the changelog I get this:

Code: Select all
version 0.09
   * added JavaDoc style code comments to the source code.
   * added developer HTML documentation to the release.
   * added option to disable GMcache in dbprefs.php when needed.
   * added onload focus() in talk.php and talk.html.
   * added pattern, that and topic columns to the templates tabel.
   * changed botloader to add information in the aforementioned columns.
   


version 0.08:
   * Multiple bots supported. Up to 255 unique bots.
   * Fixed some deprecated function pass by reference calls.
   * Changed patterns table to use auto_increment tag instead of an application level counter.
   * Changed various database fields to use less space.
   * Changed the way the gmcache works. Returns template IDs instead of complete templates.
   * Javascript tag works thanks to code contribution by Jon Baer. See code in response.php for details on how to get it to work.
   * flash.php included so Program E will work with the Alicebot Flash Toolkit (http://www.graphpaper.com/stuff/alicebot/alicebotflash.zip) by Chris Fahey.
   * JSRS code removed in this release. Will be making a return though.
   * Stefan Humnig submitted many fixes. Fixes include changing topic mid-response, allowing attributes in HTML tags in templates, and including CDATA in templates.
   * Richard Schut contributed code and ideas for the multiple bots.


In word-game.aiml file have this:
Code: Select all
<?xml version="1.0" encoding="ISO-8859-1"?>
<aiml>
<!-- Wordplay.aiml -->
<!-- Free software (c)2005 SQUAREBEAR. -->
<!-- This program is open source code released under -->
<!-- the terms of the GNU General Public License -->
<!-- as published by the Free Software Foundation. -->
<!-- Complies with AIML 1.0 Tag Set Specification -->
<!-- as adopted by the ALICE A.I. Foundation. -->


<category>
<pattern>WORDPLAY</pattern>
<template>Welcome to my anagram game.<br/>I am going to jumble a nine letter word up and you have to guess what it is.<br/>You must solve each anagram correctly to continue.
<br/>Type START to begin the anagram game.</template>
</category>

<category>
<pattern>START</pattern>
<that>TYPE START TO BEGIN THE ANAGRAM GAME</that>
<template>
<think><set name="anagramscore">0</set></think>
Here comes the first anagram.<br/>I've jumbled a word up, but which word is it?<br/>(Type QUITGAME if you give up).<br/><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>QUITGAME</pattern>
<template>
The answer was <get name="anagramanswer"/>!<br/>
Your final score was :<get name="anagramscore"/>.<br/><br/>
Type START to begin the anagram game.</template>
</category>


<!-- Give a congratulation message and add 1 to the score -->

<category>
<pattern>XANAGRAMYES</pattern>
<template>
<srai>XANAGRAMSCORE</srai>
<random>
<li>Yes. Well done.</li>
<li>That's correct.</li>
<li>Excellent.</li>
<li>Very good.</li>
<li>That is the correct answer.</li>
<li>Well done! You are good at these.</li>
</random>
<br/>Your score is :<get name="anagramscore"/><br/>
<random>
<li>Here comes the next one.</li>
<li>Let's try another anagram.</li>
<li>Tell me which word this is?</li>
<li>Can you solve the next anagram?</li>
</random>
<br/>(Type QUITGAME if you give up).<br/>
</template>
</category>


<!-- Place the jumbled up words and the answers in here -->

<category>
<pattern>XANAGRAM</pattern>
<template>
<random>
<li>Clue: Stars.<br/>NOMSTORAY<think><set name="anagramanswer">ASTRONOMY</set></think></li>
<li>Clue: Pretty.<br/>AFLUTUBEI<think><set name="anagramanswer">BEAUTIFUL</set></think></li>
<li>Clue: Seashore.<br/>SELCATION<think><set name="anagramanswer">COASTLINE</set></think></li>
<li>Clue: Copy.<br/>UPILACTED<think><set name="anagramanswer">DUPLICATE</set></think></li>
<li>Clue: Creature.<br/>TRAMWOREH<think><set name="anagramanswer">EARTHWORM</set></think></li>
<li>Clue: Next.<br/>WILOGNOLF<think><set name="anagramanswer">FOLLOWING</set></think></li>
<li>Clue: Males.<br/>NEEENTGML<think><set name="anagramanswer">GENTLEMEN</set></think></li>
<li>Clue: Emphasise.<br/>LIIGGHHHT<think><set name="anagramanswer">HIGHLIGHT</set></think></li>
<li>Clue: Unreadable.<br/>LIBELIGEL<think><set name="anagramanswer">ILLEGIBLE</set></think></li>
<li>Clue: Escape.<br/>IJKLARABE<think><set name="anagramanswer">JAILBREAK</set></think></li>
<li>Clue: Typing.<br/>BREAKYDOS<think><set name="anagramanswer">KEYBOARDS</set></think></li>
<li>Clue: Oil.<br/>BUCALRITE<think><set name="anagramanswer">LUBRICATE</set></think></li>
<li>Clue: Strength.<br/>DEMAUTING<think><set name="anagramanswer">MAGNITUDE</set></think></li>
<li>Clue: Shopkeeper.<br/>SWEETNANG<think><set name="anagramanswer">NEWSAGENT</set></think></li>
<li>Clue: Rude.<br/>FEFEVSION<think><set name="anagramanswer">OFFENSIVE</set></think></li>
<li>Clue: Canopy.<br/>UTRAPACHE<think><set name="anagramanswer">PARACHUTE</set></think></li>
<li>Clue: Enquiries.<br/>OESQUINTS<think><set name="anagramanswer">QUESTIONS</set></think></li>
<li>Clue: Weather.<br/>SPRAINDOR<think><set name="anagramanswer">RAINDROPS</set></think></li>
<li>Clue: Name.<br/>STRANGEIU<think><set name="anagramanswer">SIGNATURE</set></think></li>
<li>Clue: Fruit.<br/>RANTINGEE<think><set name="anagramanswer">TANGERINE</set></think></li>
<li>Clue: Challenge.<br/>TUMTUMAIL<think><set name="anagramanswer">ULTIMATUM</set></think></li>
<li>Clue: Food.<br/>GEBLEVATE<think><set name="anagramanswer">VEGETABLE</set></think></li>
<li>Clue: Great.<br/>FLOUNDERW<think><set name="anagramanswer">WONDERFUL</set></think></li>
<li>Clue: Foreign.<br/>PHONEBEXO<think><set name="anagramanswer">XENOPHOBE</set></think></li>
<li>Clue: Child.<br/>STRONGEYU<think><set name="anagramanswer">YOUNGSTER</set></think></li>
<li>Clue: Scientist.<br/>GLISTOOZO<think><set name="anagramanswer">ZOOLOGIST</set></think></li>
<li>Clue: Cartoon.<br/>IANMOTIAN<think><set name="anagramanswer">ANIMATION</set></think></li>
<li>Clue: Mask.<br/>FLOBINDDL<think><set name="anagramanswer">BLINDFOLD</set></think></li>
<li>Clue: Occupation.<br/>ARETRACKE<think><set name="anagramanswer">CARETAKER</set></think></li>
<li>Clue: Grower.<br/>PEERVOLED<think><set name="anagramanswer">DEVELOPER</set></think></li>
<li>Clue: Meeting.<br/>NONETRUCE<think><set name="anagramanswer">ENCOUNTER</set></think></li>
<li>Clue: Fierce.<br/>OSCOURIFE<think><set name="anagramanswer">FEROCIOUS</set></think></li>
<li>Clue: Vivid.<br/>HARPGALIC<think><set name="anagramanswer">GRAPHICAL</set></think></li>
<li>Clue: Greeting.<br/>HESKANDAH<think><set name="anagramanswer">HANDSHAKE</set></think></li>
<li>Clue: Vital.<br/>TROMPAINT<think><set name="anagramanswer">IMPORTANT</set></think></li>
<li>Clue: Animal.<br/>JIFYSHELL<think><set name="anagramanswer">JELLYFISH</set></think></li>
<li>Clue: Hostage.<br/>DEPADPINK<think><set name="anagramanswer">KIDNAPPED</set></think></li>
<li>Clue: Existence.<br/>SILLYFEET<think><set name="anagramanswer">LIFESTYLE</set></think></li>
<li>Clue: Players.<br/>ISCAMINUS<think><set name="anagramanswer">MUSICIANS</set></think></li>
<li>Clue: Obvious.<br/>YUNTRALAL<think><set name="anagramanswer">NATURALLY</set></think></li>
<li>Clue: Awful.<br/>UNSIXBOOO<think><set name="anagramanswer">OBNOXIOUS</set></think></li>
<li>Clue: Dig.<br/>TRAPETEEN<think><set name="anagramanswer">PENETRATE</set></think></li>
<li>Clue: Faster.<br/>DECKNIQUE<think><set name="anagramanswer">QUICKENED</set></think></li>
<li>Clue: Parents.<br/>STARELION<think><set name="anagramanswer">RELATIONS</set></think></li>
<li>Clue: Happy.<br/>FEASTIDIS<think><set name="anagramanswer">SATISFIED</set></think></li>
<li>Clue: Communicate.<br/>HEEPLONET<think><set name="anagramanswer">TELEPHONE</set></think></li>
<li>Clue: Capitals.<br/>SCRAPEUPE<think><set name="anagramanswer">UPPERCASE</set></think></li>
<li>Clue: Opportunities.<br/>CACAVINES<think><set name="anagramanswer">VACANCIES</set></think></li>
<li>Clue: Decoration.<br/>LAPPERLAW<think><set name="anagramanswer">WALLPAPER</set></think></li>
<li>Clue: Music.<br/>HEXPLOONY<think><set name="anagramanswer">XYLOPHONE</set></think></li>
<li>Clue: Time.<br/>STRAYEDEY<think><set name="anagramanswer">YESTERDAY</set></think></li>
<li>Clue: Animals.<br/>OKEPEROZE<think><set name="anagramanswer">ZOOKEEPER</set></think></li>
</random>
</template>
</category>


<!-- Place the correct answers here -->

<category>
<pattern>ASTRONOMY</pattern>
<that>NOMSTORAY</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>BEAUTIFUL</pattern>
<that>AFLUTUBEI</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>COASTLINE</pattern>
<that>SELCATION</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>DUPLICATE</pattern>
<that>UPILACTED</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>EARTHWORM</pattern>
<that>TRAMWOREH</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>FOLLOWING</pattern>
<that>WILOGNOLF</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>GENTLEMEN</pattern>
<that>NEEENTGML</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>HIGHLIGHT</pattern>
<that>LIIGGHHHT</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>ILLEGIBLE</pattern>
<that>LIBELIGEL</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>JAILBREAK</pattern>
<that>IJKLARABE</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>KEYBOARDS</pattern>
<that>BREAKYDOS</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>LUBRICATE</pattern>
<that>BUCALRITE</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>MAGNITUDE</pattern>
<that>DEMAUTING</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>NEWSAGENT</pattern>
<that>SWEETNANG</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>OFFENSIVE</pattern>
<that>FEFEVSION</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>PARACHUTE</pattern>
<that>UTRAPACHE</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>QUESTIONS</pattern>
<that>OESQUINTS</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>RAINDROPS</pattern>
<that>SPRAINDOR</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>SIGNATURE</pattern>
<that>STRANGEIU</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>TANGERINE</pattern>
<that>RANTINGEE</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>ULTIMATUM</pattern>
<that>TUMTUMAIL</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>VEGETABLE</pattern>
<that>GEBLEVATE</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>WONDERFUL</pattern>
<that>FLOUNDERW</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>XENOPHOBE</pattern>
<that>PHONEBEXO</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>YOUNGSTER</pattern>
<that>STRONGEYU</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>ZOOLOGIST</pattern>
<that>GLISTOOZO</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>ANIMATION</pattern>
<that>IANMOTIAN</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>BLINDFOLD</pattern>
<that>FLOBINDDL</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>CARETAKER</pattern>
<that>ARETRACKE</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>DEVELOPER</pattern>
<that>PEERVOLED</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>ENCOUNTER</pattern>
<that>NONETRUCE</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>FEROCIOUS</pattern>
<that>OSCOURIFE</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>GRAPHICAL</pattern>
<that>HARPGALIC</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>HANDSHAKE</pattern>
<that>HESKANDAH</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>IMPORTANT</pattern>
<that>TROMPAINT</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>JELLYFISH</pattern>
<that>JIFYSHELL</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>KIDNAPPED</pattern>
<that>DEPADPINK</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>LIFESTYLE</pattern>
<that>SILLYFEET</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>MUSICIANS</pattern>
<that>ISCAMINUS</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>NATURALLY</pattern>
<that>YUNTRALAL</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>OBNOXIOUS</pattern>
<that>UNSIXBOOO</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>PENETRATE</pattern>
<that>TRAPETEEN</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>QUICKENED</pattern>
<that>DECKNIQUE</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>RELATIONS</pattern>
<that>STARELION</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>SATISFIED</pattern>
<that>FEASTIDIS</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>TELEPHONE</pattern>
<that>HEEPLONET</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>UPPERCASE</pattern>
<that>SCRAPEUPE</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>VACANCIES</pattern>
<that>CACAVINES</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>WALLPAPER</pattern>
<that>LAPPERLAW</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>XYLOPHONE</pattern>
<that>HEXPLOONY</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>YESTERDAY</pattern>
<that>STRAYEDEY</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>

<category>
<pattern>ZOOKEEPER</pattern>
<that>OKEPEROZE</that>
<template>
<srai>XANAGRAMYES</srai><br/><srai>XANAGRAM</srai></template>
</category>


<!-- This part keeps score up to fifty correct answers -->

<category>
<pattern>XANAGRAMSCORE</pattern>
<template>
<think>
   <condition name="anagramscore">
      <li value="0"><set name="anagramscore">1</set></li>
      <li value="1"><set name="anagramscore">2</set></li>
      <li value="2"><set name="anagramscore">3</set></li>
      <li value="3"><set name="anagramscore">4</set></li>
      <li value="4"><set name="anagramscore">5</set></li>
      <li value="5"><set name="anagramscore">6</set></li>
      <li value="6"><set name="anagramscore">7</set></li>
      <li value="7"><set name="anagramscore">8</set></li>
      <li value="8"><set name="anagramscore">9</set></li>
      <li value="9"><set name="anagramscore">10</set></li>
      <li value="10"><set name="anagramscore">11</set></li>
      <li value="11"><set name="anagramscore">12</set></li>
      <li value="12"><set name="anagramscore">13</set></li>
      <li value="13"><set name="anagramscore">14</set></li>
      <li value="14"><set name="anagramscore">15</set></li>
      <li value="15"><set name="anagramscore">16</set></li>
      <li value="16"><set name="anagramscore">17</set></li>
      <li value="17"><set name="anagramscore">18</set></li>
      <li value="18"><set name="anagramscore">19</set></li>
      <li value="19"><set name="anagramscore">20</set></li>
      <li value="20"><set name="anagramscore">21</set></li>
      <li value="21"><set name="anagramscore">22</set></li>
      <li value="22"><set name="anagramscore">23</set></li>
      <li value="23"><set name="anagramscore">24</set></li>
      <li value="24"><set name="anagramscore">25</set></li>
      <li value="25"><set name="anagramscore">26</set></li>
      <li value="26"><set name="anagramscore">27</set></li>
      <li value="27"><set name="anagramscore">28</set></li>
      <li value="28"><set name="anagramscore">29</set></li>
      <li value="29"><set name="anagramscore">30</set></li>
      <li value="30"><set name="anagramscore">31</set></li>
      <li value="31"><set name="anagramscore">32</set></li>
      <li value="32"><set name="anagramscore">33</set></li>
      <li value="33"><set name="anagramscore">34</set></li>
      <li value="34"><set name="anagramscore">35</set></li>
      <li value="35"><set name="anagramscore">36</set></li>
      <li value="36"><set name="anagramscore">37</set></li>
      <li value="37"><set name="anagramscore">38</set></li>
      <li value="38"><set name="anagramscore">39</set></li>
      <li value="39"><set name="anagramscore">40</set></li>
      <li value="40"><set name="anagramscore">41</set></li>
      <li value="41"><set name="anagramscore">42</set></li>
      <li value="42"><set name="anagramscore">43</set></li>
      <li value="43"><set name="anagramscore">44</set></li>
      <li value="44"><set name="anagramscore">45</set></li>
      <li value="45"><set name="anagramscore">46</set></li>
      <li value="46"><set name="anagramscore">47</set></li>
      <li value="47"><set name="anagramscore">48</set></li>
      <li value="48"><set name="anagramscore">49</set></li>
      <li value="49"><set name="anagramscore">50</set></li>
   </condition>
</think>
</template>
</category>


</aiml>
Attachments
bot.zip
(42.84 KiB) Downloaded 272 times
SoulLeader
Regular Member
 
Posts: 28
Joined: November 25th, 2014, 4:47 pm

Re: Wordplay

Postby GeekCaveCreations » December 1st, 2014, 4:18 pm

Well, that's definitely an updated version of Program E, as I had thought, and it looks like a lot of improvements were made over the years. It's good to see that it wasn't completely abandoned. :)

The AIML file was created by a friend of mine (Steve Worswick, AKA Squarebear), one of the best AIML botmasters in the world, having won several prestigious chatbot competitions, including the Loebner Prize Competition. I didn't get a chance to test Program O against that AIML file last night, but I'll make it a point to do so today, and report my findings back this evening.
Comforting the disturbed, and disturbing the comfortable
Chat with Morti
User avatar
GeekCaveCreations
Safe, Reliable Insanity, Since 1961
 
Posts: 1115
Joined: April 18th, 2011, 10:52 pm
Location: Nevada, USA

Re: Wordplay

Postby SoulLeader » December 1st, 2014, 9:56 pm

Lol, your friend? What a small world. :D
Cool I look forward this and thank you. :)
SoulLeader
Regular Member
 
Posts: 28
Joined: November 25th, 2014, 4:47 pm

Re: Wordplay

Postby GeekCaveCreations » December 2nd, 2014, 12:40 am

Yes, I met Steve at a chatbots conference in Philadelphia, PA. back in 2011, and before that, I followed his work. He's a great guy, and far better at the AIML side of things than I am, so I sometimes find myself asking for guidance. Steve also had a hand in creating the new AIML 2.0 standard, which the next major version of Program O will support.

I've been working today on updating some of the core code for the current version that has been a little buggy, so I haven't yet tested the script against that AIML file (don't want to confuse things, here), but it's on the list to test, once I get the bug fix fully tested.
Comforting the disturbed, and disturbing the comfortable
Chat with Morti
User avatar
GeekCaveCreations
Safe, Reliable Insanity, Since 1961
 
Posts: 1115
Joined: April 18th, 2011, 10:52 pm
Location: Nevada, USA

Re: Wordplay

Postby SoulLeader » December 2nd, 2014, 1:55 am

Hmm he is a smart man. I am envy now. :D
I hope one day I will be also smart as he is. :D
But back to the topic (can we talk about it in other topic? I am curious about him.). :D
It means that the wordplay game will work in the next version? :D
SoulLeader
Regular Member
 
Posts: 28
Joined: November 25th, 2014, 4:47 pm

Re: Wordplay

Postby GeekCaveCreations » December 2nd, 2014, 8:33 am

I found the problem. It seems that Program O is failing to split previous chatbot responses properly. A work-around for the problem would be to change all of the <THAT> pattern entries by inserting a * wildcard and space to the beginning of every entry, but given the number of entries that would have to be modified, this "fix" may not be worth the effort. I'll look into the problem, but it may take me a while to do so, as my time isn't my own these days.
Comforting the disturbed, and disturbing the comfortable
Chat with Morti
User avatar
GeekCaveCreations
Safe, Reliable Insanity, Since 1961
 
Posts: 1115
Joined: April 18th, 2011, 10:52 pm
Location: Nevada, USA

Re: Wordplay

Postby GeekCaveCreations » December 2nd, 2014, 9:35 am

I sort of cheated, and used my web development IDE to to a search/replace on the file, adding the wildcard/space combination to the proper <that> tags, and it now works as intended. I also "enhanced" it a bit to allow multiple attempts per word, and that also works. Give it a try, and see if it works for you. :)
Attachments
word-game2.zip
Contains an updated and enhanced version of Squarebear's WORDPLAY game
(3.29 KiB) Downloaded 250 times
Comforting the disturbed, and disturbing the comfortable
Chat with Morti
User avatar
GeekCaveCreations
Safe, Reliable Insanity, Since 1961
 
Posts: 1115
Joined: April 18th, 2011, 10:52 pm
Location: Nevada, USA

Re: Wordplay

Postby SoulLeader » December 2nd, 2014, 8:30 pm

Wow you are best boss. :D Thank you very much the wordplay and the new version of Program-O. :D
I have a last request. :D
I want that if someone have max point,the chatbot will say "You have a max point, you win!" or something like this. :D
How can do this?
SoulLeader
Regular Member
 
Posts: 28
Joined: November 25th, 2014, 4:47 pm

Re: Wordplay

Postby GeekCaveCreations » December 2nd, 2014, 10:30 pm

That's certainly possible. The game only counts up to 50 points, so you can easily modify the game to display a "you win" statement when the user attains that score. Just open word-game2.aiml in Notepad (or any text editor of your choice), look for the AIML category with the PATTERN of "XANAGRAMYES" (no quotes, of course), and replace it with the following:

Code: Select all
<category>
  <pattern>XANAGRAMYES</pattern>
  <template>
    <srai>XANAGRAMSCORE</srai>
    <random>
      <li>Yes. Well done.</li>
      <li>That's correct.</li>
      <li>Excellent.</li>
      <li>Very good.</li>
      <li>That is the correct answer.</li>
      <li>Well done! You are good at these.</li>
    </random>
    <br/>Your score is :<get name="anagramscore"/><br/>
    <condition name="anagramscore">
      <li value="50">Congratulations! You've solved 50 anagrams! <b>YOU WIN!</b></li>
      <li><srai>XANAGRAMNEXT</srai></li>
    </condition>
  </template>
</category>

<category>
  <pattern>XANAGRAMNEXT</pattern>
  <template>
    <random>
      <li>Here comes the next one.</li>
      <li>Let's try another anagram.</li>
      <li>Tell me which word this is?</li>
      <li>Can you solve the next anagram?</li>
    </random>
    <br/>(Type QUITGAME if you give up).<br/>
  </template>
</category>


You'll notice that I split the category into two different ones. While this wasn't strictly necessary, it makes the AIML code easier to read. Anyway, once you make the changes outlined, save the file and upload it again with the Program O admin page. Just make sure the checkbox to clear out the old file is checked when you do, or you'll encounter random problems.
Comforting the disturbed, and disturbing the comfortable
Chat with Morti
User avatar
GeekCaveCreations
Safe, Reliable Insanity, Since 1961
 
Posts: 1115
Joined: April 18th, 2011, 10:52 pm
Location: Nevada, USA

Re: Wordplay

Postby SoulLeader » December 2nd, 2014, 10:51 pm

Wow, this is cool. :D
You can do everything in AIML. :D
Interesting this AIML things. I like it. :D I must learn more about AIML. :D
Thank you again. :)
SoulLeader
Regular Member
 
Posts: 28
Joined: November 25th, 2014, 4:47 pm

Re: Wordplay

Postby GeekCaveCreations » December 2nd, 2014, 11:02 pm

No problem. That's what I'm here for. :)

I think I'll pass this improved version along to Steve, and see what he thinks.
Comforting the disturbed, and disturbing the comfortable
Chat with Morti
User avatar
GeekCaveCreations
Safe, Reliable Insanity, Since 1961
 
Posts: 1115
Joined: April 18th, 2011, 10:52 pm
Location: Nevada, USA

Re: Wordplay

Postby Alekz » March 11th, 2015, 10:30 pm

GeekCaveCreations wrote:I found the problem. It seems that Program O is failing to split previous chatbot responses properly. A work-around for the problem would be to change all of the <THAT> pattern entries by inserting a * wildcard and space to the beginning of every entry, but given the number of entries that would have to be modified, this "fix" may not be worth the effort. I'll look into the problem, but it may take me a while to do so, as my time isn't my own these days.

Looks like it's the same punctuation issue - no difference between thatindex=1,1, 1,2, 1,3, etc. It's just one big "1", or "2".
Alekz
Avid Member
 
Posts: 75
Joined: January 25th, 2015, 2:47 pm

Re: Wordplay

Postby GeekCaveCreations » March 12th, 2015, 1:45 pm

You're right. Several times over the past year or so I've found out that certain features and/or functions have "gone missing". Most recently, I've found that the way the inputs were normalized are now different than much earlier versions, and I'm having to put in code that I know for a fact used to be there in version 2.0, but is certainly not there now. I have no idea when the code changed. Since we use GitHub for development, changes made in one place can sometimes be automatically and silently changed in another... Or could, in the beginning, when we were still learning how git worked. That doesn't happen anymore, but the "damage" is already done, so... :(
Comforting the disturbed, and disturbing the comfortable
Chat with Morti
User avatar
GeekCaveCreations
Safe, Reliable Insanity, Since 1961
 
Posts: 1115
Joined: April 18th, 2011, 10:52 pm
Location: Nevada, USA


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest

cron