Presenting a way to "fake" Artificial Intelligence (AI), leading the user to assume that the application is responding to their every command.
In Newton's 3rd Law of Motion, it states that every action has an equal and opposite reaction. We can apply this theory within our application by saying that every input will provide us with an output formed according to the input. This is call AI.
Using the code
Here we can see how some of the internal AI logic is structured:
Console.WriteLine("What is your name?");
string name = Console.ReadLine();
Console.WriteLine("Hello " + name + ", how are you?");
Console class which comes from the
System namespace is used in this instance. The class exposes very useful methods which we can use to create our AI application, namely the WriteLine(
string value) and the ReadLine() methods. The write line in our context, presents text through the console and gives the user the impression that the console is interacting with them. When the user types a reply to a question suggested by the console, the console already anticipates the answer and when an answer is given, it is taken and output to the user. This is where the input -> output scenario comes into play.
The term "pseudo" is intelligently used to describe the application's AI. This is to not mislead the developers in assuming that the use of complex and absolute AI is used, but rather to show that it is simply producing output according to predefined actions
Points of Interest
It is interesting to note how scientific concepts have so much relevance, even within a computing environment or context.
Coding and Mathematics is my life, without it I do not know what I would be.