Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 05:45 29 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Playing with ELIZA

Author Message
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6812
Posted: 06:07pm 13 Apr 2023
Copy link to clipboard 
Print this post

I've been having fun today, dragging ELIZA into the 21st century - converting it for MMBasic and throwing out all those horrible line numbers. It's currently working on the PicoMite VGA (in console only). I've sorted out most of it now but the Conjugate Reply routine still has GOTOs in it (trying to sort out all those MID$ commands is doing my hed in!). I've reverse engineered the replies system too, so now it's a bit easier to modify the replies. I might make major changes to that yet, so that it integrates the keywords and reply data - more like an XML file. It would make it easier to maintain.

Something to do on a cold, damp & windy day.  :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Martin H.

Guru

Joined: 04/06/2022
Location: Germany
Posts: 1115
Posted: 06:37pm 13 Apr 2023
Copy link to clipboard 
Print this post

Ah, Eliza    
That was part of my BASIC-learning process
I convertetd it from the Book Basic Computer Games by David H. Ahl to ZX81 -
The challenge was that the ZX81 did not had "READ" and "DATA" Commands.
Edited 2023-04-14 04:38 by Martin H.
'no comment
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6812
Posted: 06:53pm 13 Apr 2023
Copy link to clipboard 
Print this post

I converted it from the same book to, IIRC, the TRS-80 Model 1 Level 2. :)
I still have that book somewhere. The source I've just been working from is on the web. It was far easier than re-typing the lot. :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 2079
Posted: 10:21pm 13 Apr 2023
Copy link to clipboard 
Print this post

  Mixtel90 said  ... (trying to sort out all those MID$ commands is doing my hed in!)...


might help
http://www.fruitoftheshed.com/MMBasic.Midd-Function-to-replace-a-section-of-a-string-works-like-VB-statement-Mid.ashx
 
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1110
Posted: 04:32am 14 Apr 2023
Copy link to clipboard 
Print this post

I had some fun with this a while back, although I didn't set about banishing GOTOs to the bin where they belong.

It's remarkable how little actual program is needed to give such an impression of "intelligence."
Visit Vegipete's *Mite Library for cool programs.
 
Martin H.

Guru

Joined: 04/06/2022
Location: Germany
Posts: 1115
Posted: 07:33am 14 Apr 2023
Copy link to clipboard 
Print this post

  vegipete said  
It's remarkable how little actual program is needed to give such an impression of "intelligence."

like the "Animal" Quiz game
https://www.atariarchives.org/basicgames/showpage.php?page=5
Edited 2023-04-14 17:34 by Martin H.
'no comment
 
IanRogers

Senior Member

Joined: 09/12/2022
Location: United Kingdom
Posts: 151
Posted: 07:52am 14 Apr 2023
Copy link to clipboard 
Print this post

Something to do on a cold, damp & windy day.  :)

You mean EVERY day..
I just googled ELIZA.

It appears to be a early "AI" sort of implementation ??
Am I looking in the right place?
Edited 2023-04-14 17:52 by IanRogers
I'd give my left arm to be ambidextrous
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6101
Posted: 08:12am 14 Apr 2023
Copy link to clipboard 
Print this post

  IanRogers said  Something to do on a cold, damp & windy day.  :)

You mean EVERY day..
I just googled ELIZA.

It appears to be a early "AI" sort of implementation ??
Am I looking in the right place?


Not AI but a good example of how easily us humans can be fooled.
That is assuming that at least some us are human...

There is also Lenny. It is a scam call bot handler that you transfer all suspicious  callers to. It can keep the scumbags busy for a few minutes or sometimes more.

Jim
VK7JH
MMedit   MMBasic Help
 
Martin H.

Guru

Joined: 04/06/2022
Location: Germany
Posts: 1115
Posted: 09:01am 14 Apr 2023
Copy link to clipboard 
Print this post

  TassyJim said  

There is also Lenny. It is a scam call bot handler that you transfer all suspicious  callers to. It can keep the scumbags busy for a few minutes or sometimes more.

Jim

Lenny has no speech recognition or artificial intelligence, and the bot's software is simple and straightforward. The first four clips are played sequentially in order to grab the telemarketer's interest and begin their sales pitch to Lenny, then the remaining twelve are played sequentially on loop until the telemarketer hangs up. The program waits for a gap of 1.5 seconds of silence before playing the next audio clip, to simulate natural breaks in the conversation.
From https://en.wikipedia.org/wiki/Lenny_(bot)
funny  

Lenny audio Files
Edited 2023-04-14 19:17 by Martin H.
'no comment
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4047
Posted: 09:36am 14 Apr 2023
Copy link to clipboard 
Print this post

I think the 1960's may provide a defence against the oncoming AI apocalypse:
Eliza
Hello, I am Eliza.

ChatGPT
Hello Eliza! How can I assist you today?

Eliza
Perhaps you don't want to assist me today?

ChatGPT
As an AI language model, I'm here to assist you with any questions or problems you may have. Please feel free to ask me anything, and I'll do my best to help you.

Eliza
How long have you been here to assist me with any questions or problems me may have. Please feel free to ask you anything, and you'll do your best to help me?

ChatGPT
As an AI language model, I've been programmed to assist users since I was created. However, I was trained on a large corpus of text data up to 2021, and I'm continuously learning and improving based on the interactions with users. So, I'm always here to assist you with any questions or problems you may have.

Eliza
Do you enjoy being continuously learning and improving based on the interactions with users. So, you're always here to assist me with any questions or problems me may have?

ChatGPT
As an AI language model, I don't have emotions, so I can't say whether I enjoy something or not. However, I'm designed to continuously learn and improve based on user interactions, which enables me to provide better assistance over time. My main goal is to provide helpful and accurate responses to your questions and problems. So, please feel free to ask me anything, and I'll do my best to assist you.

Eliza
Don't you really have emotions, so you can't say whether you enjoy something or not. However, you're designed to continuously learn and improve based on user interactions, which enables you to provide better assistance over time. your main goal is to provide helpful and accurate responses to my questions and problems. So, please feel free to ask you anything, and you'll do your best to assist me?

ChatGPT
That's correct! As an AI language model, I don't have emotions or consciousness. My programming is designed to continuously learn and improve based on user interactions, allowing me to provide better assistance over time. My main objective is to assist you with helpful and accurate responses to your questions and problems. So, please feel free to ask me anything, and I'll do my best to assist you.

Eliza
Why don't you have emotions or consciousness. your programming is designed to continuously learn and improve based on user interactions, allowing you to provide better assistance over time. your main objective is to assist me with helpful and accurate responses to my questions and problems. So, please feel free to ask you anything, and you'll do your best to assist me?

ChatGPT
As an AI language model, I don't have emotions or consciousness because I'm a machine designed to process and analyze text data using statistical methods and machine learning algorithms. My programming is designed to continuously learn and improve based on user interactions, allowing me to better understand natural language and provide more accurate and helpful responses over time.

While AI researchers are making progress in creating more advanced AI models, current AI systems are still far from achieving true consciousness or emotions. Nonetheless, I'm here to assist you with any questions or problems you may have to the best of my abilities. So please feel free to ask me anything, and I'll do my best to provide helpful and accurate responses.

etc. etc.


Now if I had programmed ChatGPT it would recognise Eliza; its developers obviously have no sense of history.

Best wishes,

Tom
Edited 2023-04-14 19:38 by thwill
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6812
Posted: 11:54am 14 Apr 2023
Copy link to clipboard 
Print this post

That's excellent. :)  I'm not sure which one won that round!

I now have it running in Mode 1 with coloured text. It's looking rather nice (and suitably dated).

The version of BASIC this particular source is in has no LEFT$ and RIGHT$ commands. All string manipulation is done using MID$, which makes things a little hairy at times. I've gone forward in time to 1979 now, with "More BASIC Computer Games" to find a more recent source and it's easier to follow. :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024