Daniel061 / Sophie6.1

AI from stumbling Baby to Sentient being.
GNU General Public License v3.0
1 stars 1 forks source link

Duplicate MemoryCell usage counts #13

Closed Daniel061 closed 5 years ago

Daniel061 commented 5 years ago

Describe the bug the program will count storing a word in memory even if it already is stored and count it as a new cell

To Reproduce Steps to reproduce the behavior:

  1. type "The dog is wet."
  2. type "report last "// see usage count
  3. type "The dog is wet."
  4. type "report last" and usage count is doubled.

Expected behavior proper memory cell usage count.

Daniel061 commented 5 years ago

**Fixed Added code to check if already stored before writing to memory cells. Also added an optional Boolean flag UPDATE=FALSE to allow for corrections.