Menu

Inner workings

Inner workings

Introduction

This document describes how SimpleAiBot works inside, for more details look at the source code.

Initialization

  1. Clear the screen
  2. Load data file (knowledge data)
  3. Parse data file (into sentences[type][sentence][character])
  4. Close data file

Main loop

  1. Get user input
  2. Concatenate input in words
  3. Execute [AI Commands] given by user
  4. Learn from what the user says
  5. Analyze
  6. Rate all possible responses
  7. Respond with highest scored response
  8. Go to 1

Deintialization

  1. Open data file again
  2. Save data to data file (from sentences[type][sentence][character] to data file)
  3. Close data file

Related

Wiki: AI Commands

Discussion

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB