CPSC120B
Fundamentals of Computer Science I

Lab 29

Loebner Competition

Loebner Competition

Modify Chat Bot Output Format

All chat bot programs must have the same output format so that it is not possible to distinguish between bot and human based on format.

  1. Modify your chat bot python program's output so that it conforms to the following standard:
    1. The bot should prompt for user input first
    2. The program should not print anything before the first prompt
    3. The bot should use the prompt text "> " (without the quotes)
    4. The bot should not prefix bot output with anything, i.e. do not print anything except for the prompts and your responses.

    For example, the output of the program should look like:

          > hello bot
          hello human
          > can you pass a Turing test?
          no, do you want to play chess?
        
  2. Download the python program verify_bot.py and put it in the same directory as your chat bot python file.
  3. From the directory containing your bot program, run the verify bot program by typing python3 verify_bot.py YOUR_BOT_FILE_NAME.py.
  4. Wait until everybody's bot file is successfully verified before proceeding.

Run The Client

The client program will communicate with the server to determine who you will chat with and will connect you to the bot or person you will chat with.

  1. Download the python program loebner_client.py and put it in the same directory as your chat bot python file.
  2. From the directory containing your bot program, run the client by typing python3 loebner_client.py YOUR_BOT_FILE_NAME.py. Note, YOUR_BOT_FILE_NAME.py is the name of your chat bot python file.
  3. Wait until everybody's has connected to the server.
  4. Chat.
  5. When the chat is over, evaluate who or what you were chatting with.

Submission

Please show your source code and run your programs for the instructor or lab assistant. Only a programs that have perfect style and flawless functionality will be accepted as complete.